From: Jason Lowe-Power Date: Thu, 8 Mar 2018 19:35:52 +0000 (-0800) Subject: mem-cache: Fix missing overrides X-Git-Tag: v19.0.0.0~2246 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a883aef55f2b9f33e60ce72a3e053e0c7af0f21e;p=gem5.git mem-cache: Fix missing overrides clang doesn't like inconsistent overrides. Add override to all overidden functions in lru.hh Change-Id: I100ff4a7d90757439afee879ff9838c15f5c0b1d Signed-off-by: Jason Lowe-Power Reviewed-on: https://gem5-review.googlesource.com/8861 Reviewed-by: Gabe Black Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris --- diff --git a/src/mem/cache/tags/lru.hh b/src/mem/cache/tags/lru.hh index 530b07ad7..1fbe4eb6d 100644 --- a/src/mem/cache/tags/lru.hh +++ b/src/mem/cache/tags/lru.hh @@ -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; };