inorder: fix RUBY_FS build
authorKorey Sewell <ksewell@umich.edu>
Wed, 12 Jan 2011 16:52:29 +0000 (11:52 -0500)
committerKorey Sewell <ksewell@umich.edu>
Wed, 12 Jan 2011 16:52:29 +0000 (11:52 -0500)
the current code was using incorrect dummy instruction in interrupts function

src/cpu/inorder/cpu.cc

index fe2c8e708ecdc0f8d0854d297ea19f07e7132dee..5a742cb5d9efd6c8f7b45eb21c49b49ec21e9cd3 100644 (file)
@@ -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