diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-02-29 20:32:30 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-02-29 20:32:30 -0500 |
commit | 47421b844299a6b5ecd6d3f4a75a516c5b00447a (patch) | |
tree | d5d86799bc233243a66a5922913d1f003806e7eb /cpu | |
parent | 0a3948bcfd96b16887a5501231890a05bd22c5a3 (diff) | |
download | gem5-47421b844299a6b5ecd6d3f4a75a516c5b00447a.tar.xz |
fix switchover WRT interrupts
cpu/base_cpu.cc:
gah! copy the interrupt status on switchover
--HG--
extra : convert_revision : d3199a7409a494b7687354c43ffca697f37e8456
Diffstat (limited to 'cpu')
-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; } |