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>
This commit is contained in:
committed by
Anis Peysieux
parent
740756e977
commit
04bc162f15
@@ -85,10 +85,10 @@ class BRRIPRP(BaseReplacementPolicy):
|
||||
"Percentage of blocks to be inserted with long RRPV")
|
||||
|
||||
class RRIPRP(BRRIPRP):
|
||||
btp = 0
|
||||
btp = 100
|
||||
|
||||
class NRURP(BRRIPRP):
|
||||
btp = 0
|
||||
btp = 100
|
||||
max_RRPV = 1
|
||||
|
||||
class TreePLRURP(BaseReplacementPolicy):
|
||||
|
||||
@@ -66,6 +66,10 @@ class BRRIPRP : public BaseReplacementPolicy
|
||||
{
|
||||
/**
|
||||
* Re-Reference Interval Prediction Value.
|
||||
* Some values have specific names (according to the paper):
|
||||
* 0 -> near-immediate re-rereference interval
|
||||
* max_RRPV-1 -> long re-rereference interval
|
||||
* max_RRPV -> distant re-rereference interval
|
||||
* A value equal to max_RRPV + 1 indicates an invalid entry.
|
||||
*/
|
||||
int rrpv;
|
||||
|
||||
Reference in New Issue
Block a user