mem: Added missing override to cache_blk function
authorBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 27 Oct 2020 00:31:40 +0000 (17:31 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Fri, 6 Nov 2020 01:40:00 +0000 (01:40 +0000)
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 <nikos.nikoleris@arm.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/cache_blk.hh

index c16e59980abf05675ffb2f131d038fdb1f817941..bcd5c4b1b51db14b11504f08f0a057ab625f5a74 100644 (file)
@@ -160,7 +160,7 @@ class CacheBlk : public TaggedEntry
     /**
      * Invalidate the block and clear all state.
      */
-    virtual void invalidate()
+    virtual void invalidate() override
     {
         TaggedEntry::invalidate();