SimObject.py (5821:2831ae658bfc) SimObject.py (5822:05ffa2c3c800)
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 734 unchanged lines hidden (view full) ---

743 cc_params.pyobj = self
744 cc_params.name = str(self)
745
746 param_names = self._params.keys()
747 param_names.sort()
748 for param in param_names:
749 value = self._values.get(param)
750 if value is None:
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 734 unchanged lines hidden (view full) ---

743 cc_params.pyobj = self
744 cc_params.name = str(self)
745
746 param_names = self._params.keys()
747 param_names.sort()
748 for param in param_names:
749 value = self._values.get(param)
750 if value is None:
751 m5.fatal("%s.%s without default or user set value" \
752 % (self.path(), param))
751 m5.fatal("%s.%s without default or user set value",
752 self.path(), param)
753
754 value = value.getValue()
755 if isinstance(self._params[param], VectorParamDesc):
756 assert isinstance(value, list)
757 vec = getattr(cc_params, param)
758 assert not len(vec)
759 for v in value:
760 vec.append(v)

--- 131 unchanged lines hidden ---
753
754 value = value.getValue()
755 if isinstance(self._params[param], VectorParamDesc):
756 assert isinstance(value, list)
757 vec = getattr(cc_params, param)
758 assert not len(vec)
759 for v in value:
760 vec.append(v)

--- 131 unchanged lines hidden ---