summaryrefslogtreecommitdiff
path: root/src/mem/cache/blk.hh
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2018-03-09 17:05:39 +0100
committerDaniel Carvalho <odanrc@yahoo.com.br>2018-03-30 16:46:59 +0000
commit207cb98c70d753adb1906856fd34a7e288df5318 (patch)
tree14605bebba99c52891ec210e1f8b8c4a2278912d /src/mem/cache/blk.hh
parentab46e32b36810bec329a015d794f0aafff8d4b6f (diff)
downloadgem5-207cb98c70d753adb1906856fd34a7e288df5318.tar.xz
mem-cache: Create BRRIP replacement policy
Implementation of a Bimodal Re-Reference Interval Prediction replacement policy. Change-Id: I25d4a59a60ef7ac496c66852e394fd6cbaf50912 Reviewed-on: https://gem5-review.googlesource.com/8891 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/blk.hh')
-rw-r--r--src/mem/cache/blk.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh
index a1e45028b..65f32ff91 100644
--- a/src/mem/cache/blk.hh
+++ b/src/mem/cache/blk.hh
@@ -129,6 +129,11 @@ class CacheBlk
*/
Tick lastTouchTick;
+ /**
+ * Re-Reference Interval Prediction Value. Used with RRIP repl policy.
+ */
+ unsigned rrpv;
+
protected:
/**
* Represents that the indicated thread context has a "lock" on