summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2006-10-18 18:04:53 -0400
committerLisa Hsu <hsul@eecs.umich.edu>2006-10-18 18:04:53 -0400
commit75ecd3be60d81fca759d34d9c8f0e4f500652aee (patch)
tree83fb4800ee9f75988c42528e4c9118c257d392b7 /src/python
parent15770fb7b43fad1bcfb1fabcb80cc47f8e2d7f08 (diff)
downloadgem5-75ecd3be60d81fca759d34d9c8f0e4f500652aee.tar.xz
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
Diffstat (limited to 'src/python')
-rw-r--r--src/python/m5/SimObject.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index 716f584b0..18b3fff55 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -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)