Daniel Carvalho has uploaded this change for review. ( https://gem5-review.googlesource.com/9001


Change subject: mem-cache: Create NRU Replacement Policy
......................................................................

mem-cache: Create NRU Replacement Policy

Implementation of a Not Recently Used replacement policy.

Change-Id: I24ab3a6f1db6dcb756b869cfebb5c4bc544170e8
---
M src/mem/cache/replacement_policies/ReplacementPolicies.py
M src/mem/cache/replacement_policies/SConscript
2 files changed, 6 insertions(+), 0 deletions(-)



diff --git a/src/mem/cache/replacement_policies/ReplacementPolicies.py b/src/mem/cache/replacement_policies/ReplacementPolicies.py
index 5798ae8..21f2fdb 100644
--- a/src/mem/cache/replacement_policies/ReplacementPolicies.py
+++ b/src/mem/cache/replacement_policies/ReplacementPolicies.py
@@ -52,3 +52,8 @@
     max_RRPV = Param.Unsigned(3, "Maximum RRPV possible")
     hit_priority = Param.Bool(False,
         "Prioritize evicting blocks that havent had a hit recently")
+
+class NRURP(RRIPRP):
+    type = 'NRURP'
+    cxx_class = 'NRURP'
+    cxx_header = "mem/cache/replacement_policies/nru_rp.hh"
diff --git a/src/mem/cache/replacement_policies/SConscript b/src/mem/cache/replacement_policies/SConscript
index ebe5397..36a8247 100644
--- a/src/mem/cache/replacement_policies/SConscript
+++ b/src/mem/cache/replacement_policies/SConscript
@@ -34,5 +34,6 @@

 Source('base.cc')
 Source('lru_rp.cc')
+Source('nru_rp.cc')
 Source('random_rp.cc')
 Source('rrip_rp.cc')

--
To view, visit https://gem5-review.googlesource.com/9001
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I24ab3a6f1db6dcb756b869cfebb5c4bc544170e8
Gerrit-Change-Number: 9001
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <oda...@yahoo.com.br>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to