mem-cache: Move reference count stats update to blk invalidation
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 10 May 2018 10:44:47 +0000 (11:44 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 17 May 2018 14:39:54 +0000 (14:39 +0000)
commit5f3ed10a03100046b52238e3707df26f1cc1e1dd
tree84086b3e4bbaba0f6519d0326dfb8a0a078b75ef
parent9637567610649778c7aceb0d2ae2926c5ca36dd2
mem-cache: Move reference count stats update to blk invalidation

The tags in the cache keep track of the number of references to the
blocks as well as the average number of references between an
insertion and the next invalidation. Previously the stats where
updated only on block insertion and invalidations were ignored. This
changes moves the update of the counters to the block invalidation
function.

Change-Id: Ie7672c13813ec278a65232694024d2e5e17c4612
Reviewed-on: https://gem5-review.googlesource.com/10428
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
src/mem/cache/tags/base.cc
src/mem/cache/tags/base.hh