diff options
-rw-r--r-- | cpu/base_cpu.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/base_cpu.cc b/cpu/base_cpu.cc index 604ee335d..19dd11598 100644 --- a/cpu/base_cpu.cc +++ b/cpu/base_cpu.cc @@ -184,6 +184,10 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU) newXC->process->replaceExecContext(newXC->cpu_id, newXC); #endif } + + for (int i = 0; i < NumInterruptLevels; ++i) + interrupts[i] = oldCPU->interrupts[i]; + intstatus = oldCPU->intstatus; } |