summaryrefslogtreecommitdiff
path: root/src/mem/cache/replacement_policies/ReplacementPolicies.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/replacement_policies/ReplacementPolicies.py')
-rw-r--r--src/mem/cache/replacement_policies/ReplacementPolicies.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mem/cache/replacement_policies/ReplacementPolicies.py b/src/mem/cache/replacement_policies/ReplacementPolicies.py
index be9f2de50..9176d2b32 100644
--- a/src/mem/cache/replacement_policies/ReplacementPolicies.py
+++ b/src/mem/cache/replacement_policies/ReplacementPolicies.py
@@ -54,3 +54,13 @@ class RandomRP(BaseReplacementPolicy):
type = 'RandomRP'
cxx_class = 'RandomRP'
cxx_header = "mem/cache/replacement_policies/random_rp.hh"
+
+class BRRIPRP(BaseReplacementPolicy):
+ type = 'BRRIPRP'
+ cxx_class = 'BRRIPRP'
+ cxx_header = "mem/cache/replacement_policies/brrip_rp.hh"
+ max_RRPV = Param.Unsigned(3, "Maximum RRPV possible")
+ hit_priority = Param.Bool(False,
+ "Prioritize evicting blocks that havent had a hit recently")
+ btp = Param.Percent(3,
+ "Percentage of blocks to be inserted with long RRPV")