From: Steve Reinhardt Date: Tue, 16 Nov 2004 00:57:11 +0000 (-0500) Subject: Minor fixes for pc sampling profile. X-Git-Tag: m5_1.0_tutorial~126^2~31 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26c666b4f3e8a96503d3742632b278fe781263d9;p=gem5.git Minor fixes for pc sampling profile. cpu/exetrace.cc: Fix dumb mistake. --HG-- extra : convert_revision : 9d5d0d09775133d1a60cf459f1bd47afa8480663 --- 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 << " : ";