simulate.py (5037:f7af52292c45) simulate.py (5523:6279e78a2df2)
1# Copyright (c) 2005 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

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

177 raise TypeError, "%s is not of type BaseCPU" % new_cpu
178
179 # Now all of the CPUs are ready to be switched out
180 for old_cpu, new_cpu in cpuList:
181 old_cpu._ccObject.switchOut()
182
183 for old_cpu, new_cpu in cpuList:
184 new_cpu.takeOverFrom(old_cpu)
1# Copyright (c) 2005 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

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

177 raise TypeError, "%s is not of type BaseCPU" % new_cpu
178
179 # Now all of the CPUs are ready to be switched out
180 for old_cpu, new_cpu in cpuList:
181 old_cpu._ccObject.switchOut()
182
183 for old_cpu, new_cpu in cpuList:
184 new_cpu.takeOverFrom(old_cpu)
185
186from internal.core import disableAllListeners