From 51ea222ba98fb39280e19680b0d6adeb09e5112d Mon Sep 17 00:00:00 2001 From: Pau Cabre Date: Wed, 2 Aug 2017 17:49:15 +0200 Subject: [PATCH] mem-cache: Delete squashed HWPrefetches Request and Packet for squashed HWPrefetches were not deleted Change-Id: I9b66bb01b8ed6a5ddfaaa8739a68165dc4a7006c Signed-off-by: Pau Cabre Reviewed-on: https://gem5-review.googlesource.com/4340 Maintainer: Nikos Nikoleris Reviewed-by: Nikos Nikoleris --- src/mem/cache/cache.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; } } -- 2.30.2