summaryrefslogtreecommitdiff
path: root/src/mem/cache/tags/lru.hh
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2016-10-31 13:33:35 +0000
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-03-07 10:33:36 +0000
commit9bd467bf72854b613bb366e8adac75c9cfe883c3 (patch)
tree49cf3ea60a7598789541becf25bdec6397f9eba2 /src/mem/cache/tags/lru.hh
parentf80e7c072fcac179b98dbbac8cc90dba68af9cf4 (diff)
downloadgem5-9bd467bf72854b613bb366e8adac75c9cfe883c3.tar.xz
mem-cache: Make invalidate a common function between tag classes
invalidate was defined as a separate function in the base associative and fully-associative tags classes although both functions should implement identical functionality. This patch moves the invalidate function in the base tags class. Change-Id: I206ee969b00ab9e05873c6d87531474fcd712907 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/8286 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/tags/lru.hh')
-rw-r--r--src/mem/cache/tags/lru.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/tags/lru.hh b/src/mem/cache/tags/lru.hh
index d38b94ed3..530b07ad7 100644
--- a/src/mem/cache/tags/lru.hh
+++ b/src/mem/cache/tags/lru.hh
@@ -72,7 +72,7 @@ class LRU : public BaseSetAssoc
CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat);
CacheBlk* findVictim(Addr addr);
void insertBlock(PacketPtr pkt, BlkType *blk);
- void invalidate(CacheBlk *blk);
+ void invalidate(CacheBlk *blk) override;
};
#endif // __MEM_CACHE_TAGS_LRU_HH__