summaryrefslogtreecommitdiff
path: root/src/cpu/o3/lsq_unit_impl.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_impl.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_impl.hh')
-rw-r--r--src/cpu/o3/lsq_unit_impl.hh18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh
index 7f5406885..7462d4c84 100644
--- a/src/cpu/o3/lsq_unit_impl.hh
+++ b/src/cpu/o3/lsq_unit_impl.hh
@@ -1134,12 +1134,18 @@ LSQUnit<Impl>::exposeLoads()
// we should not have both req and sreqLow not NULL
assert( !(req && sreqLow));
- DPRINTF(LSQUnit, "Validate/Expose request for inst [sn:%lli]"
- " PC= %s. req=%#x, reqLow=%#x, reqHigh=%#x\n",
- load_inst->seqNum, load_inst->pcState(),
- load_inst->postReq->getVaddr(),
- load_inst->postSreqLow->getVaddr(),
- load_inst->postSreqHigh->getVaddr());
+ if (req) {
+ DPRINTF(LSQUnit, "Validate/Expose request for inst [sn:%lli]"
+ " PC= %s. req=%#x\n",
+ load_inst->seqNum, load_inst->pcState(),
+ req->getVaddr());
+ } else {
+ DPRINTF(LSQUnit, "Validate/Expose request for inst [sn:%lli]"
+ " PC= %s. reqLow=%#x, reqHigh=%#x\n",
+ load_inst->seqNum, load_inst->pcState(),
+ load_inst->postSreqLow->getVaddr(),
+ load_inst->postSreqHigh->getVaddr());
+ }
PacketPtr data_pkt = NULL;
PacketPtr snd_data_pkt = NULL;