diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2019-05-29 21:05:40 +0200 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2019-08-29 20:19:05 +0000 |
commit | 54603b0f5746a96fc69bfbcd4a7fb770fe69b250 (patch) | |
tree | bcb75c67a896877fb381c708cf89f285d96ef729 /src/mem/cache/replacement_policies/ReplacementPolicies.py | |
parent | fc528bb0c0d2c6fe1ae55e9aa5be8652cc3fd456 (diff) | |
download | gem5-54603b0f5746a96fc69bfbcd4a7fb770fe69b250.tar.xz |
mem-cache: Use SatCounter for RRPV
Use SatCounter in RRIP's RRPV. As such, move validation functionality
to a proper variable.
Change-Id: I142db2b7f6cd518ac3a2b68c9ed48005402b3464
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20452
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/mem/cache/replacement_policies/ReplacementPolicies.py')
-rw-r--r-- | src/mem/cache/replacement_policies/ReplacementPolicies.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/replacement_policies/ReplacementPolicies.py b/src/mem/cache/replacement_policies/ReplacementPolicies.py index f40d1459b..8a67deaa1 100644 --- a/src/mem/cache/replacement_policies/ReplacementPolicies.py +++ b/src/mem/cache/replacement_policies/ReplacementPolicies.py @@ -78,7 +78,7 @@ class BRRIPRP(BaseReplacementPolicy): type = 'BRRIPRP' cxx_class = 'BRRIPRP' cxx_header = "mem/cache/replacement_policies/brrip_rp.hh" - max_RRPV = Param.Int(3, "Maximum RRPV possible") + num_bits = Param.Int(2, "Number of bits per RRPV") hit_priority = Param.Bool(False, "Prioritize evicting blocks that havent had a hit recently") btp = Param.Percent(3, @@ -89,7 +89,7 @@ class RRIPRP(BRRIPRP): class NRURP(BRRIPRP): btp = 100 - max_RRPV = 1 + num_bits = 1 class TreePLRURP(BaseReplacementPolicy): type = 'TreePLRURP' |