diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-02-25 10:22:36 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-02-25 10:22:36 -0800 |
commit | 5c546e35046a0b7260dec0b4d979e05f29505785 (patch) | |
tree | f3136e6cec61eb08d5b6891e7b9eb6609b2740b9 /src | |
parent | 437b02884dedccc6f72f3e5d9c05d3a2dd6c6a2d (diff) | |
download | gem5-5c546e35046a0b7260dec0b4d979e05f29505785.tar.xz |
CPU: Only look up the nearest symbol in the kernel if you're actually in kernel code.
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/exetrace.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/exetrace.cc b/src/cpu/exetrace.cc index 5897d1dbc..ea53fb6f5 100644 --- a/src/cpu/exetrace.cc +++ b/src/cpu/exetrace.cc @@ -71,6 +71,9 @@ Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran) Addr sym_addr; if (debugSymbolTable && IsOn(ExecSymbol) +#if FULL_SYSTEM + && !inUserMode(thread) +#endif && debugSymbolTable->findNearestSymbol(PC, sym_str, sym_addr)) { if (PC != sym_addr) sym_str += csprintf("+%d", PC - sym_addr); |