diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2018-03-12 12:08:33 +0100 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2018-04-18 16:40:53 +0000 |
commit | ce9d9c9a4c119131bdcfd774f1c2a2cf28e42db9 (patch) | |
tree | 4019ffc74172d462bed1af3781b2ec43b0a2051e /src/mem/cache/replacement_policies/ReplacementPolicies.py | |
parent | 8dabce896aca604f7e47a826970434b8a33b7e9d (diff) | |
download | gem5-ce9d9c9a4c119131bdcfd774f1c2a2cf28e42db9.tar.xz |
mem-cache: Create NRU Replacement Policy
Implementation of a Not Recently Used replacement policy.
Change-Id: I24ab3a6f1db6dcb756b869cfebb5c4bc544170e8
Reviewed-on: https://gem5-review.googlesource.com/9001
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.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, 4 insertions, 0 deletions
diff --git a/src/mem/cache/replacement_policies/ReplacementPolicies.py b/src/mem/cache/replacement_policies/ReplacementPolicies.py index 8412783b9..f2cee35d1 100644 --- a/src/mem/cache/replacement_policies/ReplacementPolicies.py +++ b/src/mem/cache/replacement_policies/ReplacementPolicies.py @@ -81,3 +81,7 @@ class BRRIPRP(BaseReplacementPolicy): class RRIPRP(BRRIPRP): btp = 0 + +class NRURP(BRRIPRP): + btp = 0 + max_RRPV = 1 |