mem-cache: Add MoveToTail to FALRU
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 28 Mar 2018 10:23:19 +0000 (12:23 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 13 Apr 2018 09:27:52 +0000 (09:27 +0000)
commitf119531fc123d33bef34a6ee28cad22717c63927
tree5fc1e3794a351b7ce269a5e7dfedd8e6a2e4c195
parente6ab75cc6cc89436904905f92dfec8a964de3108
mem-cache: Add MoveToTail to FALRU

FALRU was missing MoveToTail functionality within its invalidate
function, and MoveToHead was doing unnecessary passes when the
moved block was the head already.

Besides, added some comments to make the code understandable.

Change-Id: I2430d82b5d53c88b102a62610ea38b46d6e03a55
Reviewed-on: https://gem5-review.googlesource.com/9541
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/tags/fa_lru.cc
src/mem/cache/tags/fa_lru.hh