mem-cache: Fix setting prefetch bit
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 3 Dec 2020 11:05:02 +0000 (12:05 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 3 Dec 2020 16:49:49 +0000 (16:49 +0000)
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 <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38176
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/cache_blk.hh

index 2d866a8cc864f446107ca960ece6b57200be13e3..b1038c82a6f89f85a8bafbb301f4ba60dcbc7692 100644 (file)
@@ -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.