From 5ad1fcf3ca26d4d0df8ea54401c590bbd0dbd251 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Thu, 3 Dec 2020 12:05:02 +0100 Subject: [PATCH] mem-cache: Fix setting prefetch bit Commit https://gem5-review.googlesource.com/c/public/gem5/+/35699 had a copy-paste error: when setting the prefetch bit it must become true. Change-Id: Ib0abc5141dd65d3c739dc01948a72eb5451884e8 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38176 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris Tested-by: kokoro --- src/mem/cache/cache_blk.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/cache/cache_blk.hh b/src/mem/cache/cache_blk.hh index 2d866a8cc..b1038c82a 100644 --- a/src/mem/cache/cache_blk.hh +++ b/src/mem/cache/cache_blk.hh @@ -251,7 +251,7 @@ class CacheBlk : public TaggedEntry void clearPrefetched() { _prefetched = false; } /** Marks this blocks as a recently prefetched block. */ - void setPrefetched() { _prefetched = false; } + void setPrefetched() { _prefetched = true; } /** * Get tick at which block's data will be available for access. -- 2.30.2