DPRINTF: Improve some dprintf messages.
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 10 Jan 2012 16:15:02 +0000 (10:15 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 10 Jan 2012 16:15:02 +0000 (10:15 -0600)
src/cpu/o3/iew_impl.hh
src/dev/io_device.cc

index 9c4b1068d3f6c0adfe95c7e6a0b68b3baeaa7c24..92c8875e4fa4dc3d5de95934b39a54bec0d15a98 100644 (file)
@@ -1340,10 +1340,10 @@ DefaultIEW<Impl>::executeInsts()
                 fetchRedirect[tid] = true;
 
                 DPRINTF(IEW, "Execute: Branch mispredict detected.\n");
-                DPRINTF(IEW, "Predicted target was PC:%#x, NPC:%#x.\n",
-                        inst->predInstAddr(), inst->predNextInstAddr());
+                DPRINTF(IEW, "Predicted target was PC: %s.\n",
+                        inst->readPredTarg());
                 DPRINTF(IEW, "Execute: Redirecting fetch to PC: %s.\n",
-                        inst->pcState(), inst->nextInstAddr());
+                        inst->pcState());
                 // If incorrect, then signal the ROB that it must be squashed.
                 squashDueToBranch(inst, tid);
 
index dab1f766e07299d3e7196556866ba15a47d64a6e..00e463de1016780d86834c37e9df63308cfd46d7 100644 (file)
@@ -71,7 +71,7 @@ void
 PioDevice::init()
 {
     if (!pioPort)
-        panic("Pio port not connected to anything!");
+        panic("Pio port of %s not connected to anything!", name());
     pioPort->sendStatusChange(Port::RangeChange);
 }