SimObject.py (4123:9c80390ea1bb) SimObject.py (4553:fac59b75a87d)
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 708 unchanged lines hidden (view full) ---

717 return count
718
719 def resume(self):
720 if isinstance(self, SimObject):
721 self._ccObject.resume()
722 for child in self._children.itervalues():
723 child.resume()
724
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 708 unchanged lines hidden (view full) ---

717 return count
718
719 def resume(self):
720 if isinstance(self, SimObject):
721 self._ccObject.resume()
722 for child in self._children.itervalues():
723 child.resume()
724
725 def getMemoryMode(self):
726 if not isinstance(self, m5.objects.System):
727 return None
728
729 system_ptr = internal.sim_object.convertToSystemPtr(self._ccObject)
730 return system_ptr.getMemoryMode()
731
725 def changeTiming(self, mode):
726 if isinstance(self, m5.objects.System):
727 # i don't know if there's a better way to do this - calling
728 # setMemoryMode directly from self._ccObject results in calling
729 # SimObject::setMemoryMode, not the System::setMemoryMode
730 system_ptr = internal.sim_object.convertToSystemPtr(self._ccObject)
731 system_ptr.setMemoryMode(mode)
732 for child in self._children.itervalues():

--- 63 unchanged lines hidden ---
732 def changeTiming(self, mode):
733 if isinstance(self, m5.objects.System):
734 # i don't know if there's a better way to do this - calling
735 # setMemoryMode directly from self._ccObject results in calling
736 # SimObject::setMemoryMode, not the System::setMemoryMode
737 system_ptr = internal.sim_object.convertToSystemPtr(self._ccObject)
738 system_ptr.setMemoryMode(mode)
739 for child in self._children.itervalues():

--- 63 unchanged lines hidden ---