Minor fixes for pc sampling profile.
authorSteve Reinhardt <stever@eecs.umich.edu>
Tue, 16 Nov 2004 00:57:11 +0000 (19:57 -0500)
committerSteve Reinhardt <stever@eecs.umich.edu>
Tue, 16 Nov 2004 00:57:11 +0000 (19:57 -0500)
cpu/exetrace.cc:
    Fix dumb mistake.

--HG--
extra : convert_revision : 9d5d0d09775133d1a60cf459f1bd47afa8480663

cpu/exetrace.cc

index 58fb7d668879a9ab405410adce60ba91dc0dff66..ff7e90c9ec670e79bb0be5a2a63584f469de9e41 100644 (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 << " : ";