sim: Move CPU-specific methods from SimObject to the BaseCPU class

This commit is contained in:
Andreas Sandberg
2012-09-25 11:49:40 -05:00
parent 5f32eceeda
commit 6598241f2c
6 changed files with 36 additions and 47 deletions

View File

@@ -221,7 +221,7 @@ def switchCpus(cpuList):
# Now all of the CPUs are ready to be switched out
for old_cpu, new_cpu in cpuList:
old_cpu._ccObject.switchOut()
old_cpu.switchOut()
for old_cpu, new_cpu in cpuList:
new_cpu.takeOverFrom(old_cpu)