From 1ccdf407cbd91f68763b10fa12c533e030fa5c1d Mon Sep 17 00:00:00 2001 From: Nikolaos Kyparissas Date: Tue, 30 Aug 2022 17:14:03 +0100 Subject: [PATCH] mem-cache: Added clean eviction check for prefetchers. pkt->req->isCacheMaintenance() would not include a check for clean eviction before notifying the prefetcher, causing gem5 to crash. Change-Id: I4a56c7384818c63d6e2263f26645e87cef1243cb Reviewed-by: Andreas Sandberg --- src/mem/cache/prefetch/base.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mem/cache/prefetch/base.cc b/src/mem/cache/prefetch/base.cc index e3464a8239..a85b024109 100644 --- a/src/mem/cache/prefetch/base.cc +++ b/src/mem/cache/prefetch/base.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2014, 2023-2024 Arm Limited + * Copyright (c) 2013-2014, 2022-2024 Arm Limited * All rights reserved. * * The license below extends only to copyright in the software and shall @@ -238,6 +238,7 @@ Base::probeNotify(const CacheAccessProbeArg &acc, bool miss) // operations or for writes that we are coaslescing. if (pkt->cmd.isSWPrefetch()) return; if (pkt->req->isCacheMaintenance()) return; + if (pkt->isCleanEviction()) return; if (pkt->isWrite() && cache.coalesce()) return; if (!pkt->req->hasPaddr()) { panic("Request must have a physical address");