From: Bobby R. Bruce Date: Tue, 27 Oct 2020 00:31:40 +0000 (-0700) Subject: mem: Added missing override to cache_blk function X-Git-Tag: develop-gem5-snapshot~504 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46125206ec59f049fca7e72c1b0c550b138c8e19;p=gem5.git mem: Added missing override to cache_blk function This was causing a compilation warning/error when compiling with clang. Change-Id: Ic6cf59c002656ba2ab05d8b58766613c289e7db0 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36695 Reviewed-by: Nikos Nikoleris Reviewed-by: Daniel Carvalho Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Maintainer: Nikos Nikoleris Maintainer: Andreas Sandberg Tested-by: kokoro --- diff --git a/src/mem/cache/cache_blk.hh b/src/mem/cache/cache_blk.hh index c16e59980..bcd5c4b1b 100644 --- a/src/mem/cache/cache_blk.hh +++ b/src/mem/cache/cache_blk.hh @@ -160,7 +160,7 @@ class CacheBlk : public TaggedEntry /** * Invalidate the block and clear all state. */ - virtual void invalidate() + virtual void invalidate() override { TaggedEntry::invalidate();