From 47421b844299a6b5ecd6d3f4a75a516c5b00447a Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 29 Feb 2004 20:32:30 -0500 Subject: fix switchover WRT interrupts cpu/base_cpu.cc: gah! copy the interrupt status on switchover --HG-- extra : convert_revision : d3199a7409a494b7687354c43ffca697f37e8456 --- cpu/base_cpu.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpu/base_cpu.cc') 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; } -- cgit v1.2.3