summaryrefslogtreecommitdiff
path: root/src/cpu/o3/lsq_unit_impl.hh
diff options
context:
space:
mode:
authorMatt Horsnell <Matt.Horsnell@arm.com>2013-02-15 17:40:09 -0500
committerMatt Horsnell <Matt.Horsnell@arm.com>2013-02-15 17:40:09 -0500
commite88e7d88b9a9876ee040dad96acf3deabebe1fa7 (patch)
tree54322d578272a21cd721788f25746cfbd88d94bb /src/cpu/o3/lsq_unit_impl.hh
parent64599080697a8db49b7e28609927bb4c1ed3c05e (diff)
downloadgem5-e88e7d88b9a9876ee040dad96acf3deabebe1fa7.tar.xz
o3: fix tick used for renaming and issue with range selection
Fixes the tick used from rename: - previously this gathered the tick on leaving rename which was always 1 less than the dispatch. This conflated the decode ticks when back pressure built in the pipeline. - now picks up tick on entry. Added --store_completions flag: - will additionally display the store completion tail in the viewer. - this highlights periods when large numbers of stores are outstanding (>16 LSQ blocking) Allows selection by tick range (previously this caused an infinite loop)
Diffstat (limited to 'src/cpu/o3/lsq_unit_impl.hh')
-rw-r--r--src/cpu/o3/lsq_unit_impl.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh
index a4cb56767..f0b27ba41 100644
--- a/src/cpu/o3/lsq_unit_impl.hh
+++ b/src/cpu/o3/lsq_unit_impl.hh
@@ -51,6 +51,7 @@
#include "debug/Activity.hh"
#include "debug/IEW.hh"
#include "debug/LSQUnit.hh"
+#include "debug/O3PipeView.hh"
#include "mem/packet.hh"
#include "mem/request.hh"
@@ -1137,6 +1138,13 @@ LSQUnit<Impl>::completeStore(int store_idx)
"idx:%i\n",
storeQueue[store_idx].inst->seqNum, store_idx, storeHead);
+#if TRACING_ON
+ if (DTRACE(O3PipeView)) {
+ storeQueue[store_idx].inst->storeTick =
+ curTick() - storeQueue[store_idx].inst->fetchTick;
+ }
+#endif
+
if (isStalled() &&
storeQueue[store_idx].inst->seqNum == stallingStoreIsn) {
DPRINTF(LSQUnit, "Unstalling, stalling store [sn:%lli] "