how did i not commit this already? the other way doesn't seem to work, need to convert to System ptr first to access System method.

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
This commit is contained in:
Lisa Hsu 2006-10-18 18:04:53 -04:00
parent 15770fb7b4
commit 75ecd3be60

View 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)