diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2016-11-02 17:28:46 +0000 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2018-03-05 17:11:47 +0000 |
commit | 1ae7fced4d32898531a6875a339ef00e43e20e66 (patch) | |
tree | 687b9a80ba19b9974545f57ad2ac1408342da468 | |
parent | 1d4717ab7ece153206b0bd0bd8e1acc9497cbf05 (diff) | |
download | gem5-1ae7fced4d32898531a6875a339ef00e43e20e66.tar.xz |
mem-cache: Remove redundant block initialization on allocation
Change-Id: I7496e12e6a517529316c480d5f6e2ade601f0e2d
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/8282
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
-rw-r--r-- | src/mem/cache/tags/base_set_assoc.hh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mem/cache/tags/base_set_assoc.hh b/src/mem/cache/tags/base_set_assoc.hh index cbd48092c..fc15b0220 100644 --- a/src/mem/cache/tags/base_set_assoc.hh +++ b/src/mem/cache/tags/base_set_assoc.hh @@ -257,12 +257,8 @@ public: replacements[0]++; totalRefs += blk->refCount; ++sampledRefs; - blk->refCount = 0; - - // deal with evicted block - assert(blk->srcMasterId < cache->system->maxMasters()); - occupancies[blk->srcMasterId]--; + invalidate(blk); blk->invalidate(); } |