mem-cache: Fix RRPV for RRIP
authorAnis Peysieux <anis.peysieux@inria.fr>
Tue, 9 Apr 2019 14:26:53 +0000 (16:26 +0200)
committerAnis Peysieux <anis.peysieux@gmail.com>
Thu, 11 Apr 2019 15:34:46 +0000 (15:34 +0000)
commit04bc162f152b4a67aad921b4965353cb73cbc820
tree9784e7db9e584d6d42bab1fe2b6322e544b1ddaf
parent740756e97736ad6b65dcb651c2f1f69cc1282781
mem-cache: Fix RRPV for RRIP

The RRPV values for RRIP and NRU replacment policies.
Long re-rereference interval was used instead of
distant re-rereference interval and vice-versa.
The btp value permit to choose beetwen distant and
long insertion ratio. A btp value of 0 force the
policy to always insert at a distant re-reference
interval and a btp value of 100 force the policy to
always insert at a long (intermediate) re-rereference
interval.

Change-Id: I516098f73942b769dcc31fe0edfe07c3e9c3effd
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17851
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/replacement_policies/ReplacementPolicies.py
src/mem/cache/replacement_policies/brrip_rp.hh