diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2016-10-31 13:33:35 +0000 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2018-03-07 10:33:36 +0000 |
commit | 9bd467bf72854b613bb366e8adac75c9cfe883c3 (patch) | |
tree | 49cf3ea60a7598789541becf25bdec6397f9eba2 /src/mem/cache/tags/random_repl.hh | |
parent | f80e7c072fcac179b98dbbac8cc90dba68af9cf4 (diff) | |
download | gem5-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/random_repl.hh')
-rw-r--r-- | src/mem/cache/tags/random_repl.hh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mem/cache/tags/random_repl.hh b/src/mem/cache/tags/random_repl.hh index 8f08a7034..71b2f5ce6 100644 --- a/src/mem/cache/tags/random_repl.hh +++ b/src/mem/cache/tags/random_repl.hh @@ -1,4 +1,16 @@ /* + * Copyright (c) 2017 ARM Limited + * All rights reserved. + * + * The license below extends only to copyright in the software and shall + * not be construed as granting a license to any other intellectual + * property including but not limited to intellectual property relating + * to a hardware implementation of the functionality of the software + * licensed hereunder. You may use the software subject to the license + * terms below provided that you ensure that this notice is replicated + * unmodified and in its entirety in all distributions of the software, + * modified or unmodified, in source code or in binary form. + * * Copyright (c) 2014 The Regents of The University of Michigan * All rights reserved. * @@ -61,7 +73,6 @@ class RandomRepl : 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); }; #endif // __MEM_CACHE_TAGS_RANDOM_REPL_HH__ |