summaryrefslogtreecommitdiff
path: root/src/cpu/inorder
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-09-20 02:46:42 -0700
committerGabe Black <gblack@eecs.umich.edu>2010-09-20 02:46:42 -0700
commitab8d7eee76e9d439070fe116fb23e0afe7aa74c3 (patch)
tree2fc54a18e5233e875c664b4897368805b425a174 /src/cpu/inorder
parent3f9f4bf3d6ce9080adb03966599e0f1a98b091eb (diff)
downloadgem5-ab8d7eee76e9d439070fe116fb23e0afe7aa74c3.tar.xz
CPU: Fix O3 and possible InOrder segfaults in FS.
Diffstat (limited to 'src/cpu/inorder')
-rw-r--r--src/cpu/inorder/cpu.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc
index 5d4d3c580..5d42ba559 100644
--- a/src/cpu/inorder/cpu.cc
+++ b/src/cpu/inorder/cpu.cc
@@ -633,7 +633,9 @@ InOrderCPU::processInterrupts(Fault interrupt)
this->interrupts->updateIntrInfo(this->threadContexts[0]);
DPRINTF(InOrderCPU, "Interrupt %s being handled\n", interrupt->name());
- this->trap(interrupt, 0);
+ static StaticInstPtr dummyStatic(TheISA::NoopMachInst, 0);
+ static DynInstPtr dummyDyn = new Impl::DynInst(dummyStatic);
+ this->trap(interrupt, dummyDyn);
}