summaryrefslogtreecommitdiff
path: root/src/mem/cache
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2018-10-18 10:56:33 +0100
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-10-18 10:21:47 +0000
commite9434cff87762255bc055e04a2695e70a53c41a2 (patch)
tree4b4e6f02351e071ac52857860bc0c0a85b679d77 /src/mem/cache
parent313c015bbc61da0b8acedc84e4d136835a9f9805 (diff)
downloadgem5-e9434cff87762255bc055e04a2695e70a53c41a2.tar.xz
mem-cache: Fix unused variable warning in FALRU:invalidate()
Change-Id: I3b902045433ca56b3e62c251158e784b5fa9e4d7 Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/13600 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Diffstat (limited to 'src/mem/cache')
-rw-r--r--src/mem/cache/tags/fa_lru.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc
index 5c2d05b38..01f0aa256 100644
--- a/src/mem/cache/tags/fa_lru.cc
+++ b/src/mem/cache/tags/fa_lru.cc
@@ -124,7 +124,8 @@ void
FALRU::invalidate(CacheBlk *blk)
{
// Erase block entry reference in the hash table
- auto num_erased = tagHash.erase(std::make_pair(blk->tag, blk->isSecure()));
+ auto num_erased M5_VAR_USED =
+ tagHash.erase(std::make_pair(blk->tag, blk->isSecure()));
// Sanity check; only one block reference should be erased
assert(num_erased == 1);