diff --git a/src/mem/cache/replacement_policies/mru_rp.cc b/src/mem/cache/replacement_policies/mru_rp.cc index 0a89d4373a..f4cf014ae2 100644 --- a/src/mem/cache/replacement_policies/mru_rp.cc +++ b/src/mem/cache/replacement_policies/mru_rp.cc @@ -56,7 +56,7 @@ MRURP::reset(CacheBlk *blk) } CacheBlk* -MRURP::getVictim(ReplacementCandidates& candidates) +MRURP::getVictim(const ReplacementCandidates& candidates) { // There must be at least one replacement candidate assert(candidates.size() > 0); diff --git a/src/mem/cache/replacement_policies/mru_rp.hh b/src/mem/cache/replacement_policies/mru_rp.hh index d9276e6894..d947d7cb39 100644 --- a/src/mem/cache/replacement_policies/mru_rp.hh +++ b/src/mem/cache/replacement_policies/mru_rp.hh @@ -77,7 +77,7 @@ class MRURP : public BaseReplacementPolicy * @param cands Replacement candidates, selected by indexing policy. * @return Cache block to be replaced. */ - CacheBlk* getVictim(ReplacementCandidates& candidates) override; + CacheBlk* getVictim(const ReplacementCandidates& candidates) override; }; #endif // __MEM_CACHE_REPLACEMENT_POLICIES_MRU_RP_HH__