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 --- 712 unchanged lines hidden (view full) --- 721 722 def resume(self): 723 if isinstance(self, SimObject) and not isinstance(self, ParamContext): 724 self._ccObject.resume() 725 for child in self._children.itervalues(): 726 child.resume() 727 728 def changeTiming(self, mode): |
729 if isinstance(self, m5.objects.System): 730 # i don't know if there's a better way to do this - calling 731 # setMemoryMode directly from self._ccObject results in calling 732 # SimObject::setMemoryMode, not the System::setMemoryMode 733## system_ptr = cc_main.convertToSystemPtr(self._ccObject) 734## system_ptr.setMemoryMode(mode) |
735 self._ccObject.setMemoryMode(mode) 736 for child in self._children.itervalues(): 737 child.changeTiming(mode) 738 739 def takeOverFrom(self, old_cpu): 740 cpu_ptr = cc_main.convertToBaseCPUPtr(old_cpu._ccObject) 741 self._ccObject.takeOverFrom(cpu_ptr) 742 --- 61 unchanged lines hidden --- |