simulate.py (9253:e0d2a8e9f445) simulate.py (9254:f1b35c618252)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

216 for old_cpu, new_cpu in cpuList:
217 if not isinstance(old_cpu, objects.BaseCPU):
218 raise TypeError, "%s is not of type BaseCPU" % old_cpu
219 if not isinstance(new_cpu, objects.BaseCPU):
220 raise TypeError, "%s is not of type BaseCPU" % new_cpu
221
222 # Now all of the CPUs are ready to be switched out
223 for old_cpu, new_cpu in cpuList:
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

216 for old_cpu, new_cpu in cpuList:
217 if not isinstance(old_cpu, objects.BaseCPU):
218 raise TypeError, "%s is not of type BaseCPU" % old_cpu
219 if not isinstance(new_cpu, objects.BaseCPU):
220 raise TypeError, "%s is not of type BaseCPU" % new_cpu
221
222 # Now all of the CPUs are ready to be switched out
223 for old_cpu, new_cpu in cpuList:
224 old_cpu._ccObject.switchOut()
224 old_cpu.switchOut()
225
226 for old_cpu, new_cpu in cpuList:
227 new_cpu.takeOverFrom(old_cpu)
228
229from internal.core import disableAllListeners
225
226 for old_cpu, new_cpu in cpuList:
227 new_cpu.takeOverFrom(old_cpu)
228
229from internal.core import disableAllListeners