mem-cache: Add missing StridePrefetcher invalidation
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 6 Oct 2020 12:30:04 +0000 (14:30 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 8 Oct 2020 18:32:00 +0000 (18:32 +0000)
A call to the entry's parent's invalidate function was missing.
Since an entry was only invalidated right before being used,
previous behavior was not breaking anything.

Change-Id: Ibbf31a0099600a8f6be70b3426bac9fcd1e5c749
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35696
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/prefetch/stride.cc

index 9b5894370dcb715b09938c20d8216718dd2c636a..8141af2e5e257c7ff8f0ed2a239ce38a1b040f70 100644 (file)
@@ -68,6 +68,7 @@ Stride::StrideEntry::StrideEntry(const SatCounter& init_confidence)
 void
 Stride::StrideEntry::invalidate()
 {
+    TaggedEntry::invalidate();
     lastAddr = 0;
     stride = 0;
     confidence.reset();