mem-cache: Move unused prefetches counter update
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 4 Feb 2019 12:57:25 +0000 (13:57 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 12 Dec 2019 14:43:09 +0000 (14:43 +0000)
commita87a3e4fad3bc83cb42f4896404dbd65fd3a0d73
tree8caed77f6d90061e11cae7e47f57edaf239cc46d
parentd11f5c97af8cf81c3b984ec948ce653148831f59
mem-cache: Move unused prefetches counter update

The number of unused prefetches should be updated every time
a block is invalidated, therefore we move the update to within
the corresponding function.

Change-Id: If3ac2ea43611525bd3c36d628d88382042fcb7dc
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18908
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/base.cc