diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2005-11-10 20:30:04 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2005-11-10 20:30:04 -0500 |
commit | d727c2b6cf68df62a5603da40d86b5f3da81df75 (patch) | |
tree | 164faa73b289c4be63ccdf5f8f4d643a5b311192 /cpu | |
parent | 3532a661c59e6028f44cf6309dfcfdb765a9813a (diff) | |
download | gem5-d727c2b6cf68df62a5603da40d86b5f3da81df75.tar.xz |
Fix Lisa's CPU trace system check for syscall emulation.
cpu/exetrace.cc:
CPU system name check doesn't work under syscall emulation, so don't
compile it in.
--HG--
extra : convert_revision : 2c128bf759877222107652fd86323be6dc71a34c
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/exetrace.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpu/exetrace.cc b/cpu/exetrace.cc index 3b9853655..8393a1b85 100644 --- a/cpu/exetrace.cc +++ b/cpu/exetrace.cc @@ -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()) { |