summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-04-08 11:32:47 +0800
committerIru Cai <mytbk920423@gmail.com>2019-05-31 15:59:17 +0800
commit56d9022ebe913630920a38a7a7d8945b7c22a4fe (patch)
tree1678c73431ff649b0056922263d8a826cd70cd44
parent57eb50e414a3aaa6e8bc96ae158af55246cb6754 (diff)
downloadgem5-56d9022ebe913630920a38a7a7d8945b7c22a4fe.tar.xz
we need to ++loadsToVLD when (!inst->readyToExpose() && inst->needPostFetch())
-rw-r--r--src/cpu/o3/lsq_unit_impl.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh
index 3edbe4761..e31532d48 100644
--- a/src/cpu/o3/lsq_unit_impl.hh
+++ b/src/cpu/o3/lsq_unit_impl.hh
@@ -1062,6 +1062,9 @@ LSQUnit<Impl>::updateVisibleState()
inst->readyToExpose(false);
} else {
DPRINTF(LSQUnit, "load inst [sn:%lli] %s is an unsafe speculated load, but source registers are not tainted.\n", inst->seqNum, inst->pcState());
+ if (!inst->readyToExpose() && inst->needPostFetch()) {
+ ++loadsToVLD;
+ }
inst->readyToExpose(true);
}
}
@@ -1086,6 +1089,8 @@ LSQUnit<Impl>::exposeLoads()
int old_loadsToVLD = loadsToVLD;
+ DPRINTF(LSQUnit, "starting exposeLoads(): loadsToVLD = %d\n", loadsToVLD);
+
// [InvisiSpec] Note:
// need to iterate from the head every time
// since the load can be exposed out-of-order