Add a function to get a SimObject's memory mode and rework
the set memory mode code to only go through the change if it is necessary --HG-- extra : convert_revision : 28288227bb56b0a04d756776eaf0a4ff9e1f8c20
This commit is contained in:
@@ -722,6 +722,13 @@ class SimObject(object):
|
||||
for child in self._children.itervalues():
|
||||
child.resume()
|
||||
|
||||
def getMemoryMode(self):
|
||||
if not isinstance(self, m5.objects.System):
|
||||
return None
|
||||
|
||||
system_ptr = internal.sim_object.convertToSystemPtr(self._ccObject)
|
||||
return system_ptr.getMemoryMode()
|
||||
|
||||
def changeTiming(self, mode):
|
||||
if isinstance(self, m5.objects.System):
|
||||
# i don't know if there's a better way to do this - calling
|
||||
|
||||
Reference in New Issue
Block a user