From 150bc41ca61a75b6df996395a649a331ef3b049a Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 8 Apr 2019 11:32:47 +0800 Subject: we need to ++loadsToVLD when (!inst->readyToExpose() && inst->needPostFetch()) --- src/cpu/o3/lsq_unit_impl.hh | 5 +++++ 1 file changed, 5 insertions(+) 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::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::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 -- cgit v1.2.3