mem-cache: Create Second-Chance replacement policy
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Fri, 23 Mar 2018 15:08:51 +0000 (16:08 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 3 May 2018 14:26:58 +0000 (14:26 +0000)
commit04d236e5687ba11d71ced0a37044fdd55aa5bb42
tree2db8621bd8889b0ac06875f2fe6c6228676df720
parentc149983d931054d8cf88d2977a1f03a0b8b3b543
mem-cache: Create Second-Chance replacement policy

Implementation of a Second-Chance replacement policy. Similar to FIFO,
but every block is given a second chance if it has been touched.

Change-Id: Id4d52b698d0045a4914a4d848fdf9c3c00a28508
Reviewed-on: https://gem5-review.googlesource.com/9441
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/replacement_policies/ReplacementPolicies.py
src/mem/cache/replacement_policies/SConscript
src/mem/cache/replacement_policies/fifo_rp.hh
src/mem/cache/replacement_policies/second_chance_rp.cc [new file with mode: 0644]
src/mem/cache/replacement_policies/second_chance_rp.hh [new file with mode: 0644]