cpu-o3: Set packet data type for IPR read
authorPouya Fotouhi <Pouya.Fotouhi@amd.com>
Fri, 12 Jul 2019 17:28:55 +0000 (12:28 -0500)
committerPouya Fotouhi <pfotouhi@ucdavis.edu>
Sat, 13 Jul 2019 00:48:33 +0000 (00:48 +0000)
This change assigns packet data type to static for IPR read.
Caused by change (e13d6dc9c0d7a4ae0215f1ee6793eb32570c5169),
and has been reported a few times in the mailing list.

Change-Id: I0f02c20a16824e220df876e9e552bbc1c9636f95
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19449
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/o3/lsq_unit.hh

index d3f1d0712760306ede7f57398ee9044db9163f7e..cd512ced7bc2e7f0da358b3925f984efe9fb1af1 100644 (file)
@@ -667,6 +667,8 @@ LSQUnit<Impl>::read(LSQRequest *req, int load_idx)
         ThreadContext *thread = cpu->tcBase(lsqID);
         PacketPtr main_pkt = new Packet(req->mainRequest(), MemCmd::ReadReq);
 
+        main_pkt->dataStatic(load_inst->memData);
+
         Cycles delay = req->handleIprRead(thread, main_pkt);
 
         WritebackEvent *wb = new WritebackEvent(load_inst, main_pkt, this);