diff options
author | Curtis Dunham <Curtis.Dunham@arm.com> | 2014-05-13 12:20:48 -0500 |
---|---|---|
committer | Curtis Dunham <Curtis.Dunham@arm.com> | 2014-05-13 12:20:48 -0500 |
commit | e3b19cb294c98466a431950888045c6b5d24b675 (patch) | |
tree | 781bcf5ea9fdce45a5747a4d5ef74485ee5e0727 /src/cpu/ozone/lw_lsq.hh | |
parent | afbae1ec95e94b6da441a0269dbd9359a7069e3d (diff) | |
download | gem5-e3b19cb294c98466a431950888045c6b5d24b675.tar.xz |
mem: Refactor assignment of Packet types
Put the packet type swizzling (that is currently done in a lot of places)
into a refineCommand() member function.
Diffstat (limited to 'src/cpu/ozone/lw_lsq.hh')
-rw-r--r-- | src/cpu/ozone/lw_lsq.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cpu/ozone/lw_lsq.hh b/src/cpu/ozone/lw_lsq.hh index 855e5a97c..514c4b01a 100644 --- a/src/cpu/ozone/lw_lsq.hh +++ b/src/cpu/ozone/lw_lsq.hh @@ -631,10 +631,7 @@ OzoneLWLSQ<Impl>::read(RequestPtr req, T &data, int load_idx) DPRINTF(OzoneLSQ, "Doing timing access for inst PC %#x\n", inst->readPC()); - PacketPtr data_pkt = - new Packet(req, - (req->isLLSC() ? - MemCmd::LoadLockedReq : Packet::ReadReq)); + PacketPtr data_pkt = Packet::createRead(req); data_pkt->dataStatic(inst->memData); LSQSenderState *state = new LSQSenderState; |