summaryrefslogtreecommitdiff
path: root/src/cpu/o3/lsq_unit.hh
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-04-01 09:58:48 +0800
committerIru Cai <mytbk920423@gmail.com>2019-04-01 09:58:48 +0800
commita1ca6275a05e504a2f8cf9a1b61768da126b266b (patch)
tree0526e4e88519c524e78e2ef74945e641e6bda434 /src/cpu/o3/lsq_unit.hh
parenta012519d3e2c151a86d599c308f07e0fd3b5922a (diff)
downloadgem5-a1ca6275a05e504a2f8cf9a1b61768da126b266b.tar.xz
fix getvaddr nullptr stuff, add a non-spec load printingis-rebase11-LSQUnit
Diffstat (limited to 'src/cpu/o3/lsq_unit.hh')
-rw-r--r--src/cpu/o3/lsq_unit.hh20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/cpu/o3/lsq_unit.hh b/src/cpu/o3/lsq_unit.hh
index 4f729a4e5..16095ed46 100644
--- a/src/cpu/o3/lsq_unit.hh
+++ b/src/cpu/o3/lsq_unit.hh
@@ -842,8 +842,10 @@ LSQUnit<Impl>::read(const RequestPtr &req,
sendSpecRead = true;
DPRINTF(LSQUnit, "send a spec read for inst [sn:%lli]\n",
load_inst->seqNum);
+ } else {
+ DPRINTF(LSQUnit, "send a non-spec read for inst [sn:%lli]\n",
+ load_inst->seqNum);
}
-
}
assert( !(sendSpecRead && load_inst->isSpecCompleted()) &&
@@ -1026,18 +1028,22 @@ LSQUnit<Impl>::read(const RequestPtr &req,
load_inst->postSreqLow = std::make_shared<Request>(*sreqLow);
load_inst->postSreqHigh = std::make_shared<Request>(*sreqHigh);
load_inst->postReq = nullptr;
+ DPRINTF(LSQUnit, "created validation/expose"
+ " request for inst [sn:%lli]"
+ " reqLow=%#x, reqHigh=%#x\n",
+ load_inst->seqNum,
+ load_inst->postSreqLow->getVaddr(),
+ load_inst->postSreqHigh->getVaddr());
}else{
load_inst->postReq = std::make_shared<Request>(*req);
load_inst->postSreqLow = nullptr;
load_inst->postSreqHigh = nullptr;
+ DPRINTF(LSQUnit, "created validation/expose"
+ " request for inst [sn:%lli]"
+ " req=%#x\n",
+ load_inst->seqNum, load_inst->postReq->getVaddr());
}
load_inst->needDeletePostReq(true);
- DPRINTF(LSQUnit, "created validation/expose"
- " request for inst [sn:%lli]"
- "req=%#x, reqLow=%#x, reqHigh=%#x\n",
- load_inst->seqNum, load_inst->postReq->getVaddr(),
- load_inst->postSreqLow->getVaddr(),
- load_inst->postSreqHigh->getVaddr());
} else {
load_inst->setExposeCompleted();
load_inst->needPostFetch(false);