mem-cache: Fix missing overrides
authorJason Lowe-Power <jason@lowepower.com>
Thu, 8 Mar 2018 19:35:52 +0000 (11:35 -0800)
committerJason Lowe-Power <jason@lowepower.com>
Thu, 8 Mar 2018 23:08:50 +0000 (23:08 +0000)
clang doesn't like inconsistent overrides. Add override to all overidden
functions in lru.hh

Change-Id: I100ff4a7d90757439afee879ff9838c15f5c0b1d
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/8861
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/cache/tags/lru.hh

index 530b07ad7fddcfe660e789b44d3300a540ad537c..1fbe4eb6d03838a216de2a7ceb52f95f21d94eed 100644 (file)
@@ -69,9 +69,9 @@ class LRU : public BaseSetAssoc
      */
     ~LRU() {}
 
-    CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat);
-    CacheBlk* findVictim(Addr addr);
-    void insertBlock(PacketPtr pkt, BlkType *blk);
+    CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) override;
+    CacheBlk* findVictim(Addr addr) override;
+    void insertBlock(PacketPtr pkt, BlkType *blk) override;
     void invalidate(CacheBlk *blk) override;
 };