diff options
author | Giacomo Gabrielli <Giacomo.Gabrielli@arm.com> | 2011-07-15 11:53:35 -0500 |
---|---|---|
committer | Giacomo Gabrielli <Giacomo.Gabrielli@arm.com> | 2011-07-15 11:53:35 -0500 |
commit | 69ef57fd0f226af90faf46ac877343b5493df693 (patch) | |
tree | 3e4572c2a803aea5636a4059ce853144fd5f0ae0 /src/cpu/o3/iew_impl.hh | |
parent | 09914cdf8f270cb4ab1861d1ff92b91e49b39608 (diff) | |
download | gem5-69ef57fd0f226af90faf46ac877343b5493df693.tar.xz |
O3: Create a pipeline activity viewer for the O3 CPU model.
Implemented a pipeline activity viewer as a python script (util/o3-pipeview.py)
and modified O3 code base to support an extra trace flag (O3PipeView) for
generating traces to be used as inputs by the tool.
Diffstat (limited to 'src/cpu/o3/iew_impl.hh')
-rw-r--r-- | src/cpu/o3/iew_impl.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu/o3/iew_impl.hh b/src/cpu/o3/iew_impl.hh index 00a7ef0d9..aceca3c93 100644 --- a/src/cpu/o3/iew_impl.hh +++ b/src/cpu/o3/iew_impl.hh @@ -1147,6 +1147,10 @@ DefaultIEW<Impl>::dispatchInsts(ThreadID tid) toRename->iewInfo[tid].dispatched++; ++iewDispatchedInsts; + +#if TRACING_ON + inst->dispatchTick = curTick(); +#endif } if (!insts_to_dispatch.empty()) { @@ -1619,6 +1623,10 @@ DefaultIEW<Impl>::updateExeInstStats(DynInstPtr &inst) iewExecutedInsts++; #endif +#if TRACING_ON + inst->completeTick = curTick(); +#endif + // // Control operations // |