how did i not commit this already? the other way doesn't seem to work, need to conve...
authorLisa Hsu <hsul@eecs.umich.edu>
Wed, 18 Oct 2006 22:04:53 +0000 (18:04 -0400)
committerLisa Hsu <hsul@eecs.umich.edu>
Wed, 18 Oct 2006 22:04:53 +0000 (18:04 -0400)
src/python/m5/SimObject.py:
    how did i not commit this already?  the other way doesn't seem to work.

--HG--
extra : convert_revision : 55737d3d10742a1913a376d1febbc5809f2fab8f

src/python/m5/SimObject.py

index 716f584b0189e70c58ba0ef8b3061652a33b48de..18b3fff550b356d223151c6e1407bc4d924c649a 100644 (file)
@@ -730,9 +730,8 @@ class SimObject(object):
             # 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
-##            system_ptr = cc_main.convertToSystemPtr(self._ccObject)
-##            system_ptr.setMemoryMode(mode)
-            self._ccObject.setMemoryMode(mode)
+            system_ptr = cc_main.convertToSystemPtr(self._ccObject)
+            system_ptr.setMemoryMode(mode)
         for child in self._children.itervalues():
             child.changeTiming(mode)