Lines Matching refs:SimObject

61 # relies on the SimObject definition
65 # load (when SimObject class references Param to create a class
86 # Each SimObject class in M5 is represented by a Python class with the
89 # SimObjects inherit from a single SimObject base class). To specify
90 # an instance of an M5 SimObject in a configuration, the user simply
92 # that SimObject are given by assigning to attributes of the Python
100 # The magic lies in the mapping of the Python attributes for SimObject
101 # classes to the actual SimObject parameter specifications. This
116 # list of all SimObject classes
185 is_simobj = issubclass(param.ptype, m5.SimObject.SimObject)
204 code(' SimObject *simObject)${end_of_decl}')
214 is_simobj = issubclass(param.ptype, m5.SimObject.SimObject)
235 code(' const std::vector<SimObject *> &simObjects)${end_of_decl}')
245 is_simobj = issubclass(param.ptype, m5.SimObject.SimObject)
299 is_simobj = issubclass(param.ptype, m5.SimObject.SimObject)
329 is_simobj = issubclass(param.ptype, m5.SimObject.SimObject)
378 code('SimObject *${member_prefix}simObjectCreate()${end_of_decl}')
398 # The metaclass for SimObject. This class controls how new classes
399 # that derive from SimObject are instantiated, and provides inherited
425 assert name not in allClasses, "SimObject %s already present" % name
477 cls._children = multidict() # SimObject children
496 # the following is not true is when we define the SimObject
521 warn("No header file specified for SimObject: %s", name)
574 # if param value is a SimObject, make it a child too, so that
629 "cannot set SimObject parameter '%s' after\n" \
640 # If RHS is a SimObject, it's an implicit child assignment.
754 # If not and if there was a SimObject base, use its c++ class
783 # Generate the C++ declaration (.hh file) for this SimObject's
879 # The base SimObject has a couple of params that get
883 if cls == SimObject:
918 if cls == SimObject:
938 # Generate the C++ declaration/definition files for this SimObject's
945 # SimObject class definition to the MetaSimObject methods (in
947 # values defined on the SimObject class itself). It will get
949 # SimObject be defined) lower in this file.
1078 # The SimObject class is the root of the special hierarchy. Most of
1081 class SimObject(object):
1082 # Specify metaclass. Any class inheriting from SimObject will
1085 type = 'SimObject'
1108 """Load SimObject state from a checkpoint"""
1170 # Initialize new instance. For objects with SimObject-valued
1211 # clone SimObject-valued parameters
1319 # if RHS is a SimObject, it's an implicit child assignment
1334 raise IndexError("Non-zero index '%s' to SimObject" % key)
1336 # this hack allows us to iterate over a SimObject that may
1352 # Return parent object of this SimObject, not implemented by
1389 # Take SimObject-valued parameters that haven't been explicitly
1397 # need to convert raw SimObject sequences to
1402 warn("%s adopting orphan SimObject param '%s'", self, key)
1695 This function is intended to allow users to modify SimObject
1708 return isinstance(value, SimObject)
1711 return issubclass(value, SimObject)
1746 raise TypeError("SimObject or SimObjectVector expected")
1763 'SimObject',