mem-cache: Delete squashed HWPrefetches
authorPau Cabre <pau.cabre@metempsy.com>
Wed, 2 Aug 2017 15:49:15 +0000 (17:49 +0200)
committerPau Cabre <pau.cabre@metempsy.com>
Tue, 8 Aug 2017 06:43:19 +0000 (06:43 +0000)
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>
src/mem/cache/cache.cc

index fdc14a7c0d1e13510d6bab7f2058266fc5e1e06c..169ef0d1d4ad52efc03d8bcb1baa61aef72ebdc3 100644 (file)
@@ -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;
         }
     }