From: Daniel R. Carvalho Date: Tue, 6 Oct 2020 12:30:04 +0000 (+0200) Subject: mem-cache: Add missing StridePrefetcher invalidation X-Git-Tag: develop-gem5-snapshot~672 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cae67357bce8d617226eb68571207ddc9fb6431f;p=gem5.git 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 --- 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();