mem-cache: fix missing overrides in repl policies
authorJason Lowe-Power <jason@lowepower.com>
Fri, 23 Mar 2018 17:34:02 +0000 (10:34 -0700)
committerJason Lowe-Power <jason@lowepower.com>
Fri, 23 Mar 2018 18:12:14 +0000 (18:12 +0000)
Change-Id: I67759a4532e8a46c1643d4c3a9c546ad6b565b81
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/9321
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/cache/replacement_policies/lru_rp.hh
src/mem/cache/replacement_policies/mru_rp.hh

index 3e5efe61f21e74f1e51b67d1f4b026e2e0d2b8c4..2dd7e86f08ff0530a8710638bd7871c0c5666159 100644 (file)
@@ -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.
index d947d7cb39376266afc0fd54d305982aca8b567c..fd9a29dff626575e005a4a3952e56bd69904f331 100644 (file)
@@ -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.