From: Daniel R. Carvalho Date: Thu, 3 Dec 2020 11:05:02 +0000 (+0100) Subject: mem-cache: Fix setting prefetch bit X-Git-Tag: develop-gem5-snapshot~399 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ad1fcf3ca26d4d0df8ea54401c590bbd0dbd251;p=gem5.git 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 --- 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.