summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-06-28 18:27:38 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2011-06-28 18:27:38 -0500
commitf4cfd65d2982f0f97304ef05083b40f3346a496f (patch)
tree707b05d1a6ede320d8e0c87143747befc90d9027 /src
parentd50aec8d9ae9c9e543494e118fc3be1645c3e9a3 (diff)
downloadgem5-f4cfd65d2982f0f97304ef05083b40f3346a496f.tar.xz
arch: print next upc correctly
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.
Diffstat (limited to 'src')
-rw-r--r--src/arch/generic/types.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/generic/types.hh b/src/arch/generic/types.hh
index 050fbd56e..931c07134 100644
--- a/src/arch/generic/types.hh
+++ b/src/arch/generic/types.hh
@@ -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;
}