Config: corrects the way Ruby attaches to the DMA ports
[gem5.git] / src / kern / system_events.cc
index 25856e4662d65ce9530b55e50a860ba0e62c6727..3ee7a099a48ec24ac23c751c5cd9f6e6c664acf4 100644 (file)
@@ -34,6 +34,7 @@
 #include "base/trace.hh"
 #include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
+#include "debug/PCEvent.hh"
 #include "kern/system_events.hh"
 
 using namespace TheISA;
@@ -41,9 +42,10 @@ using namespace TheISA;
 void
 SkipFuncEvent::process(ThreadContext *tc)
 {
-    DPRINTF(PCEvent, "skipping %s: pc=%x, newpc=%x\n", description,
-            tc->readPC(), tc->readIntReg(ReturnAddressReg));
+    TheISA::PCState oldPC M5_VAR_USED = tc->pcState();
 
     // Call ISA specific code to do the skipping
     TheISA::skipFunction(tc);
+    DPRINTF(PCEvent, "skipping %s: pc = %s, newpc = %s\n", description,
+            oldPC, tc->pcState());
 }