From: Jason Lowe-Power Date: Fri, 23 Mar 2018 17:34:02 +0000 (-0700) Subject: mem-cache: fix missing overrides in repl policies X-Git-Tag: v19.0.0.0~2206 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6a28e5fc2e698cb7c6f35bb2476a1cce9f689d2;p=gem5.git mem-cache: fix missing overrides in repl policies Change-Id: I67759a4532e8a46c1643d4c3a9c546ad6b565b81 Signed-off-by: Jason Lowe-Power Reviewed-on: https://gem5-review.googlesource.com/9321 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris --- diff --git a/src/mem/cache/replacement_policies/lru_rp.hh b/src/mem/cache/replacement_policies/lru_rp.hh index 3e5efe61f..2dd7e86f0 100644 --- a/src/mem/cache/replacement_policies/lru_rp.hh +++ b/src/mem/cache/replacement_policies/lru_rp.hh @@ -62,7 +62,7 @@ class LRURP : public BaseReplacementPolicy * * @param blk Cache block to be touched. */ - void touch(CacheBlk *blk); + void touch(CacheBlk *blk) override; /** * Reset replacement data for a block. Used when a block is inserted. @@ -70,7 +70,7 @@ class LRURP : public BaseReplacementPolicy * * @param blk Cache block to be reset. */ - void reset(CacheBlk *blk); + void reset(CacheBlk *blk) override; /** * Find replacement victim using LRU timestamps. diff --git a/src/mem/cache/replacement_policies/mru_rp.hh b/src/mem/cache/replacement_policies/mru_rp.hh index d947d7cb3..fd9a29dff 100644 --- a/src/mem/cache/replacement_policies/mru_rp.hh +++ b/src/mem/cache/replacement_policies/mru_rp.hh @@ -62,7 +62,7 @@ class MRURP : public BaseReplacementPolicy * * @param blk Cache block to be touched. */ - void touch(CacheBlk *blk); + void touch(CacheBlk *blk) override; /** * Reset replacement data for a block. Used when a block is inserted. @@ -70,7 +70,7 @@ class MRURP : public BaseReplacementPolicy * * @param blk Cache block to be reset. */ - void reset(CacheBlk *blk); + void reset(CacheBlk *blk) override; /** * Find replacement victim using access timestamps.