From: Daniel R. Carvalho Date: Mon, 12 Mar 2018 11:14:46 +0000 (+0100) Subject: mem-cache: Create LIP Replacement Policy X-Git-Tag: v19.0.0.0~2184 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7c6d86009c03a953da25df8f29186d6cc07eff3;p=gem5.git mem-cache: Create LIP Replacement Policy Implementation of a LRU Insertion Policy replacement policy. Change-Id: I1a9aa0091ff2cdc1b1652c1d5ec7a3b33fba5b44 Reviewed-on: https://gem5-review.googlesource.com/9002 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris --- diff --git a/src/mem/cache/replacement_policies/ReplacementPolicies.py b/src/mem/cache/replacement_policies/ReplacementPolicies.py index 7ec728d46..8412783b9 100644 --- a/src/mem/cache/replacement_policies/ReplacementPolicies.py +++ b/src/mem/cache/replacement_policies/ReplacementPolicies.py @@ -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'