summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-02-29 22:56:42 -0500
committerNathan Binkert <binkertn@umich.edu>2004-02-29 22:56:42 -0500
commit31ccbde8299239718ba5fc45387c30d5ccb045a7 (patch)
tree7a76ee7b19369bf77344225f13481ead63246796 /cpu
parent7f688ba6a97808290aa5fcaaa4ff8c383d191830 (diff)
downloadgem5-31ccbde8299239718ba5fc45387c30d5ccb045a7.tar.xz
Fix the swichover code. It's only for FULL_SYSTEM
cpu/base_cpu.cc: #ifdef FULL_SYSTEM --HG-- extra : convert_revision : 427ee93d545596da00d6c4688a7e32d584054948
Diffstat (limited to 'cpu')
-rw-r--r--cpu/base_cpu.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/base_cpu.cc b/cpu/base_cpu.cc
index 19dd11598..367662f25 100644
--- a/cpu/base_cpu.cc
+++ b/cpu/base_cpu.cc
@@ -185,9 +185,11 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU)
#endif
}
+#ifdef FULL_SYSTEM
for (int i = 0; i < NumInterruptLevels; ++i)
interrupts[i] = oldCPU->interrupts[i];
intstatus = oldCPU->intstatus;
+#endif
}