summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPau Cabre <pau.cabre@metempsy.com>2017-08-02 17:49:15 +0200
committerPau Cabre <pau.cabre@metempsy.com>2017-08-08 06:43:19 +0000
commit51ea222ba98fb39280e19680b0d6adeb09e5112d (patch)
tree3b132cafe5c09c72b3c58cbde46f89e2eba5a923
parent3a02fcbaca8879f227c735bd42e9c79283fc17ed (diff)
downloadgem5-51ea222ba98fb39280e19680b0d6adeb09e5112d.tar.xz
mem-cache: Delete squashed HWPrefetches
Request and Packet for squashed HWPrefetches were not deleted Change-Id: I9b66bb01b8ed6a5ddfaaa8739a68165dc4a7006c Signed-off-by: Pau Cabre <pau.cabre@metempsy.com> Reviewed-on: https://gem5-review.googlesource.com/4340 Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
-rw-r--r--src/mem/cache/cache.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc
index fdc14a7c0..169ef0d1d 100644
--- a/src/mem/cache/cache.cc
+++ b/src/mem/cache/cache.cc
@@ -2419,6 +2419,11 @@ Cache::sendMSHRQueuePacket(MSHR* mshr)
// mshr when all had previously been utilized
clearBlocked(Blocked_NoMSHRs);
}
+
+ // given that no response is expected, delete Request and Packet
+ delete tgt_pkt->req;
+ delete tgt_pkt;
+
return false;
}
}