mem-cache: Fix update of useful prefetches
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 3 Dec 2020 11:06:25 +0000 (12:06 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 13 Jan 2021 11:12:23 +0000 (11:12 +0000)
commit3b03eaab9ce2914054101745deb888710e9cde9c
tree52abda93cccbec2bc5533b3025e7bd1d7d4a71eb
parentc6933a27da32f7acd361cc89396ccdb33e51d92e
mem-cache: Fix update of useful prefetches

The probe notification must be parsed on every hit, even if
the prefetcher is set not to generate prefetches on accesses.
This fixes the calculation of useful prefetches.

Change-Id: Iff298f7bea11013f411f4ba39dba705fd81a0cd4
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38177
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/prefetch/base.cc