Minor fixes for pc sampling profile.

cpu/exetrace.cc:
    Fix dumb mistake.

--HG--
extra : convert_revision : 9d5d0d09775133d1a60cf459f1bd47afa8480663
This commit is contained in:
Steve Reinhardt 2004-11-15 19:57:11 -05:00
parent e904ef3763
commit 26c666b4f3

View file

@ -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 << " : ";