mem-cache: Create NRU Replacement Policy
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 12 Mar 2018 11:08:33 +0000 (12:08 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 18 Apr 2018 16:40:53 +0000 (16:40 +0000)
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>

src/mem/cache/replacement_policies/ReplacementPolicies.py

index 8412783b9e56f4596a9b69730c2d8427db042034..f2cee35d127c1ddf28857a1119083bf04ab976c7 100644 (file)
@@ -81,3 +81,7 @@ class BRRIPRP(BaseReplacementPolicy):
 
 class RRIPRP(BRRIPRP):
     btp = 0
+
+class NRURP(BRRIPRP):
+    btp = 0
+    max_RRPV = 1