diff options
Diffstat (limited to 'cpu/base_cpu.cc')
-rw-r--r-- | cpu/base_cpu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/base_cpu.cc b/cpu/base_cpu.cc index 3ee7a3892..8a9c9a102 100644 --- a/cpu/base_cpu.cc +++ b/cpu/base_cpu.cc @@ -185,10 +185,10 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU) newXC->takeOverFrom(oldXC); assert(newXC->cpu_id == oldXC->cpu_id); #ifdef FULL_SYSTEM - system->replaceExecContext(newXC->cpu_id, newXC); + system->replaceExecContext(newXC, newXC->cpu_id); #else assert(newXC->process == oldXC->process); - newXC->process->replaceExecContext(newXC->cpu_id, newXC); + newXC->process->replaceExecContext(newXC, newXC->cpu_id); #endif } |