mem-cache: mark block as dirty when handling SW prefetch
authorTiago Mück <tiago.muck@arm.com>
Mon, 29 Jul 2019 18:45:31 +0000 (13:45 -0500)
committerTiago Mück <tiago.muck@arm.com>
Wed, 31 Jul 2019 15:11:55 +0000 (15:11 +0000)
commit603f1378c0459f58593683782eaafb69500f0693
tree080a7d85237b79ac432cb3686424182a2378c5a0
parentafc30c07f598a8dd45ea4bc458f89d3485c50025
mem-cache: mark block as dirty when handling SW prefetch

This addresses the issue described in
64687ee mem-cache: Mark block as dirty after a SWPrefetchEXResp.

Previous patch misses cases when the prefetch response is ReadExResp or
UpgradeResp. Also, marking the block as dirty in serviceMSHRTargets
instead of in handleFill covers cases when the prefetch is coalesced with
other requests.

Change-Id: I2b377fdd240eb0f09e720b6bb284dee6545925ce
Signed-off-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19688
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/base.cc
src/mem/cache/cache.cc