56a57
> #include "base/sat_counter.hh"
73d73
< * A value equal to max_RRPV + 1 indicates an invalid entry.
75c75
< int rrpv;
---
> SatCounter rrpv;
76a77,79
> /** Whether the entry is valid. */
> bool valid;
>
80c83,86
< BRRIPReplData(const int max_RRPV) : rrpv(max_RRPV + 1) {}
---
> BRRIPReplData(const int num_bits)
> : rrpv(num_bits), valid(false)
> {
> }
84,88c90,93
< * Maximum Re-Reference Prediction Value possible. An entry with this
< * value as the rrpv has the longest possible re-reference interval,
< * that is, it is likely not to be used in the near future, and is
< * among the best eviction candidates.
< * A maxRRPV of 1 implies in a NRU.
---
> * Number of RRPV bits. An entry that saturates its RRPV has the longest
> * possible re-reference interval, that is, it is likely not to be used
> * in the near future, and is among the best eviction candidates.
> * A maximum RRPV of 1 implies in a NRU.
90c95
< const int maxRRPV;
---
> const unsigned numRRPVBits;