summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/cache/replacement_policies/lru_rp.hh4
-rw-r--r--src/mem/cache/replacement_policies/mru_rp.hh4
2 files changed, 4 insertions, 4 deletions
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.