mem-cache: Create LIP Replacement Policy
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 12 Mar 2018 11:14:46 +0000 (12:14 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 6 Apr 2018 07:59:52 +0000 (07:59 +0000)
Implementation of a LRU Insertion Policy replacement policy.

Change-Id: I1a9aa0091ff2cdc1b1652c1d5ec7a3b33fba5b44
Reviewed-on: https://gem5-review.googlesource.com/9002
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/cache/replacement_policies/ReplacementPolicies.py

index 7ec728d46870005377613892466cf9512d5c2cbc..8412783b9e56f4596a9b69730c2d8427db042034 100644 (file)
@@ -56,6 +56,9 @@ class BIPRP(LRURP):
     cxx_header = "mem/cache/replacement_policies/bip_rp.hh"
     btp = Param.Percent(3, "Percentage of blocks to be inserted as MRU")
 
+class LIPRP(BIPRP):
+    btp = 0
+
 class MRURP(BaseReplacementPolicy):
     type = 'MRURP'
     cxx_class = 'MRURP'