Fix Lisa's CPU trace system check for syscall emulation.
authorSteve Reinhardt <stever@eecs.umich.edu>
Fri, 11 Nov 2005 01:30:04 +0000 (20:30 -0500)
committerSteve Reinhardt <stever@eecs.umich.edu>
Fri, 11 Nov 2005 01:30:04 +0000 (20:30 -0500)
cpu/exetrace.cc:
    CPU system name check doesn't work under syscall emulation, so don't
    compile it in.

--HG--
extra : convert_revision : 2c128bf759877222107652fd86323be6dc71a34c

cpu/exetrace.cc

index 3b9853655a6ee6ff6a68a22586396569533c99a5..8393a1b8528fb3c78fd38ad9d4defe0d87f6fd8f 100644 (file)
@@ -52,7 +52,12 @@ void
 Trace::InstRecord::dump(ostream &outs)
 {
     if (flags[INTEL_FORMAT]) {
-        if (cpu->system->name() == trace_system) {
+#if FULL_SYSTEM
+        bool is_trace_system = (cpu->system->name() == trace_system);
+#else
+        bool is_trace_system = true;
+#endif
+        if (is_trace_system) {
             ccprintf(outs, "%7d ) ", cycle);
             outs << "0x" << hex << PC << ":\t";
             if (staticInst->isLoad()) {