projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a3948b
)
fix switchover WRT interrupts
author
Nathan Binkert
<binkertn@umich.edu>
Mon, 1 Mar 2004 01:32:30 +0000
(20:32 -0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Mon, 1 Mar 2004 01:32:30 +0000
(20:32 -0500)
cpu/base_cpu.cc:
gah! copy the interrupt status on switchover
--HG--
extra : convert_revision :
d3199a7409a494b7687354c43ffca697f37e8456
cpu/base_cpu.cc
patch
|
blob
|
history
diff --git
a/cpu/base_cpu.cc
b/cpu/base_cpu.cc
index 604ee335d373503dc1b6a56d73c8f6bd5947641e..19dd115987b107ecdb50d37521cb7fa0aa158964 100644
(file)
--- 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;
}