summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-01-12 11:52:29 -0500
committerKorey Sewell <ksewell@umich.edu>2011-01-12 11:52:29 -0500
commitcd5a7f72215cf29bf958666306f161ef120298a3 (patch)
tree7bc8b7dfd726ae489c4f5710d3d75cdac3a75e3c
parentbd18ac82877072a87745aaf7a104e7bb036c6c66 (diff)
downloadgem5-cd5a7f72215cf29bf958666306f161ef120298a3.tar.xz
inorder: fix RUBY_FS build
the current code was using incorrect dummy instruction in interrupts function
-rw-r--r--src/cpu/inorder/cpu.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc
index fe2c8e708..5a742cb5d 100644
--- a/src/cpu/inorder/cpu.cc
+++ b/src/cpu/inorder/cpu.cc
@@ -612,7 +612,7 @@ Fault
InOrderCPU::getInterrupts()
{
// Check if there are any outstanding interrupts
- return this->interrupts->getInterrupt(this->threadContexts[0]);
+ return interrupts->getInterrupt(threadContexts[0]);
}
@@ -626,12 +626,12 @@ InOrderCPU::processInterrupts(Fault interrupt)
// @todo: Allow other threads to handle interrupts.
assert(interrupt != NoFault);
- this->interrupts->updateIntrInfo(this->threadContexts[0]);
+ interrupts->updateIntrInfo(threadContexts[0]);
DPRINTF(InOrderCPU, "Interrupt %s being handled\n", interrupt->name());
- static StaticInstPtr dummyStatic(TheISA::NoopMachInst, 0);
- static DynInstPtr dummyDyn = new Impl::DynInst(dummyStatic);
- this->trap(interrupt, dummyDyn);
+
+ // Note: Context ID ok here? Impl. of FS mode needs to revisit this
+ trap(interrupt, threadContexts[0]->contextId(), dummyBufferInst);
}
@@ -1407,13 +1407,13 @@ InOrderCPU::wakeCPU()
void
InOrderCPU::wakeup()
{
- if (this->thread[0]->status() != ThreadContext::Suspended)
+ if (thread[0]->status() != ThreadContext::Suspended)
return;
- this->wakeCPU();
+ wakeCPU();
DPRINTF(Quiesce, "Suspended Processor woken\n");
- this->threadContexts[0]->activate();
+ threadContexts[0]->activate();
}
#endif