From 5f32eceeda92f45d253a0835c6643e786a91ba49 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 25 Sep 2012 11:49:40 -0500 Subject: 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. --- src/python/m5/SimObject.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/python/m5/SimObject.py') diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index ae6b2035e..c8227c067 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py @@ -1050,19 +1050,6 @@ class SimObject(object): for portRef in self._port_refs.itervalues(): portRef.ccConnect() - def getMemoryMode(self): - if not isinstance(self, m5.objects.System): - return None - - return self._ccObject.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 - # setMemoryMode directly from self._ccObject results in calling - # SimObject::setMemoryMode, not the System::setMemoryMode - self._ccObject.setMemoryMode(mode) - def takeOverFrom(self, old_cpu): self._ccObject.takeOverFrom(old_cpu._ccObject) -- cgit v1.2.3