diff options
Diffstat (limited to 'src/cpu/o3/decode_impl.hh')
-rw-r--r-- | src/cpu/o3/decode_impl.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cpu/o3/decode_impl.hh b/src/cpu/o3/decode_impl.hh index f87ec0bfa..9ab672931 100644 --- a/src/cpu/o3/decode_impl.hh +++ b/src/cpu/o3/decode_impl.hh @@ -47,6 +47,7 @@ #include "cpu/inst_seq.hh" #include "debug/Activity.hh" #include "debug/Decode.hh" +#include "debug/O3PipeView.hh" #include "params/DerivO3CPU.hh" #include "sim/full_system.hh" @@ -714,7 +715,9 @@ DefaultDecode<Impl>::decodeInsts(ThreadID tid) --insts_available; #if TRACING_ON - inst->decodeTick = curTick() - inst->fetchTick; + if (DTRACE(O3PipeView)) { + inst->decodeTick = curTick() - inst->fetchTick; + } #endif // Ensure that if it was predicted as a branch, it really is a |