From cae67357bce8d617226eb68571207ddc9fb6431f Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Tue, 6 Oct 2020 14:30:04 +0200 Subject: [PATCH] mem-cache: Add missing StridePrefetcher invalidation 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35696 Reviewed-by: Nikos Nikoleris Reviewed-by: Jason Lowe-Power Maintainer: Nikos Nikoleris Tested-by: kokoro --- src/mem/cache/prefetch/stride.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mem/cache/prefetch/stride.cc b/src/mem/cache/prefetch/stride.cc index 9b5894370..8141af2e5 100644 --- a/src/mem/cache/prefetch/stride.cc +++ b/src/mem/cache/prefetch/stride.cc @@ -68,6 +68,7 @@ Stride::StrideEntry::StrideEntry(const SatCounter& init_confidence) void Stride::StrideEntry::invalidate() { + TaggedEntry::invalidate(); lastAddr = 0; stride = 0; confidence.reset(); -- 2.30.2