SimObject.py (9195:77fd8912c9d4) SimObject.py (9253:e0d2a8e9f445)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

1045 return self.getCCObject()
1046
1047 # Create C++ port connections corresponding to the connections in
1048 # _port_refs
1049 def connectPorts(self):
1050 for portRef in self._port_refs.itervalues():
1051 portRef.ccConnect()
1052
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

1045 return self.getCCObject()
1046
1047 # Create C++ port connections corresponding to the connections in
1048 # _port_refs
1049 def connectPorts(self):
1050 for portRef in self._port_refs.itervalues():
1051 portRef.ccConnect()
1052
1053 def getMemoryMode(self):
1054 if not isinstance(self, m5.objects.System):
1055 return None
1056
1057 return self._ccObject.getMemoryMode()
1058
1059 def changeTiming(self, mode):
1060 if isinstance(self, m5.objects.System):
1061 # i don't know if there's a better way to do this - calling
1062 # setMemoryMode directly from self._ccObject results in calling
1063 # SimObject::setMemoryMode, not the System::setMemoryMode
1064 self._ccObject.setMemoryMode(mode)
1065
1066 def takeOverFrom(self, old_cpu):
1067 self._ccObject.takeOverFrom(old_cpu._ccObject)
1068
1069# Function to provide to C++ so it can look up instances based on paths
1070def resolveSimObject(name):
1071 obj = instanceDict[name]
1072 return obj.getCCObject()
1073

--- 55 unchanged lines hidden ---
1053 def takeOverFrom(self, old_cpu):
1054 self._ccObject.takeOverFrom(old_cpu._ccObject)
1055
1056# Function to provide to C++ so it can look up instances based on paths
1057def resolveSimObject(name):
1058 obj = instanceDict[name]
1059 return obj.getCCObject()
1060

--- 55 unchanged lines hidden ---