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 <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>
This commit is contained in:
committed by
Daniel Carvalho
parent
d5ede90a5d
commit
5ad1fcf3ca
2
src/mem/cache/cache_blk.hh
vendored
2
src/mem/cache/cache_blk.hh
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user