Minor fixes for pc sampling profile.
cpu/exetrace.cc:
Fix dumb mistake.
--HG--
extra : convert_revision : 9d5d0d09775133d1a60cf459f1bd47afa8480663
This commit is contained in:
@@ -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 << " : ";
|
||||
|
||||
Reference in New Issue
Block a user