mem-cache: Fix FALRU hash invalidation
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 4 Oct 2018 08:53:12 +0000 (10:53 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 5 Oct 2018 18:42:49 +0000 (18:42 +0000)
commit027a14087ddd37836693ab919ce44a4ecfad5db6
treebafc49462ec58040756cf63f2ec9f3fa6bc1852c
parente2c8d06289354b539358c2425c28f2939d3ddf48
mem-cache: Fix FALRU hash invalidation

The block was being invalidated before the hash could erase
its entry, therefore it was using invalid values (tag was
being assigned MaxAddr and the secure bit was reset).

This change reorders the calls, so that the appropriate hash
entry is erased.

Change-Id: I161463df0f8f5220179bc68d7be12051e5390d01
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/13210
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/tags/fa_lru.cc