SimObject.py (3202:c095cfd0da96) | SimObject.py (3321:d9080c4da915) |
---|---|
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 --- 716 unchanged lines hidden (view full) --- 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 | 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 --- 716 unchanged lines hidden (view full) --- 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) | 733 system_ptr = cc_main.convertToSystemPtr(self._ccObject) 734 system_ptr.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 743 # generate output file for 'dot' to display as a pretty graph. --- 60 unchanged lines hidden --- | 735 for child in self._children.itervalues(): 736 child.changeTiming(mode) 737 738 def takeOverFrom(self, old_cpu): 739 cpu_ptr = cc_main.convertToBaseCPUPtr(old_cpu._ccObject) 740 self._ccObject.takeOverFrom(cpu_ptr) 741 742 # generate output file for 'dot' to display as a pretty graph. --- 60 unchanged lines hidden --- |