summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2017-02-19 05:30:31 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2017-02-19 05:30:31 -0500
commit912b20d02a4ec12b076e675ff150e3f1e89febaa (patch)
tree59737428a17213413fd977c88d56f67bce559974 /src/mem
parent4fc16544af39cfb55feefcbcbb13e5e3c9f61b80 (diff)
downloadgem5-912b20d02a4ec12b076e675ff150e3f1e89febaa.tar.xz
mem: Ensure deferred snoops are cache-line aligned
This patch fixes a bug where a deferred snoop ended up being to a partial cache line, and not cache-line aligned, all due to how we copy the packet.
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/cache/mshr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/mshr.cc b/src/mem/cache/mshr.cc
index 577e8eb79..2dd23440a 100644
--- a/src/mem/cache/mshr.cc
+++ b/src/mem/cache/mshr.cc
@@ -415,7 +415,7 @@ MSHR::handleSnoop(PacketPtr pkt, Counter _order)
// the packet and the request as part of handling the deferred
// snoop.
PacketPtr cp_pkt = will_respond ? new Packet(pkt, true, true) :
- new Packet(new Request(*pkt->req), pkt->cmd);
+ new Packet(new Request(*pkt->req), pkt->cmd, blkSize);
if (will_respond) {
// we are the ordering point, and will consequently