sim: Remove SimObject::setMemoryMode
Remove SimObject::setMemoryMode from the main SimObject class since it is only valid for the System class. In addition to removing the method from the C++ sources, this patch also removes getMemoryMode and changeTiming from SimObject.py and updates the simulation code to call the (get|set)MemoryMode method on the System object instead.
This commit is contained in:
@@ -194,8 +194,7 @@ def changeToAtomic(system):
|
||||
if system.getMemoryMode() != objects.params.atomic:
|
||||
doDrain(system)
|
||||
print "Changing memory mode to atomic"
|
||||
for obj in system.descendants():
|
||||
obj.changeTiming(objects.params.atomic)
|
||||
system.setMemoryMode(objects.params.atomic)
|
||||
|
||||
def changeToTiming(system):
|
||||
if not isinstance(system, (objects.Root, objects.System)):
|
||||
@@ -204,8 +203,7 @@ def changeToTiming(system):
|
||||
|
||||
if system.getMemoryMode() != objects.params.timing:
|
||||
print "Changing memory mode to timing"
|
||||
for obj in system.descendants():
|
||||
obj.changeTiming(objects.params.timing)
|
||||
system.setMemoryMode(objects.params.timing)
|
||||
|
||||
def switchCpus(cpuList):
|
||||
print "switching cpus"
|
||||
|
||||
Reference in New Issue
Block a user