summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2004-11-15 19:57:11 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2004-11-15 19:57:11 -0500
commit26c666b4f3e8a96503d3742632b278fe781263d9 (patch)
tree81a35c0996118f932d40677cb1cfb0eed99e7d13
parente904ef37636ec7381cba003a3c9451a088a38190 (diff)
downloadgem5-26c666b4f3e8a96503d3742632b278fe781263d9.tar.xz
Minor fixes for pc sampling profile.
cpu/exetrace.cc: Fix dumb mistake. --HG-- extra : convert_revision : 9d5d0d09775133d1a60cf459f1bd47afa8480663
-rw-r--r--cpu/exetrace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/exetrace.cc b/cpu/exetrace.cc
index 58fb7d668..ff7e90c9e 100644
--- a/cpu/exetrace.cc
+++ b/cpu/exetrace.cc
@@ -69,8 +69,8 @@ Trace::InstRecord::dump(ostream &outs)
if (debugSymbolTable
&& debugSymbolTable->findNearestSymbol(PC, sym_str, sym_addr)) {
if (PC != sym_addr)
- sym_str += csprintf("+%d", addr - sym_addr);
- outs << "@" << setw(17) << sym_str << " : ";
+ sym_str += csprintf("+%d", PC - sym_addr);
+ outs << "@" << sym_str << " : ";
}
else {
outs << "0x" << hex << PC << " : ";