arch: print next upc correctly
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 28 Jun 2011 23:27:38 +0000 (18:27 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 28 Jun 2011 23:27:38 +0000 (18:27 -0500)
The patch corrects the print statement which prints the current and
the next pc. Instead of the next upc, the next pc was being printed.

src/arch/generic/types.hh

index 050fbd56e99546450b0ee98ea83c7fdf665ab186..931c0713475e1c0b15c0c95a60cc05c68163a668 100644 (file)
@@ -269,7 +269,7 @@ std::ostream &
 operator<<(std::ostream & os, const UPCState<MachInst> &pc)
 {
     ccprintf(os, "(%#x=>%#x).(%d=>%d)",
-            pc.pc(), pc.npc(), pc.upc(), pc.npc());
+            pc.pc(), pc.npc(), pc.upc(), pc.nupc());
     return os;
 }