From: Lisa Hsu Date: Wed, 18 Oct 2006 22:04:53 +0000 (-0400) Subject: how did i not commit this already? the other way doesn't seem to work, need to conve... X-Git-Tag: m5_2.0_beta2~73^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75ecd3be60d81fca759d34d9c8f0e4f500652aee;p=gem5.git 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 --- 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)