mem-cache: Create ReplacementPolicy namespace
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Sat, 28 Dec 2019 22:38:21 +0000 (23:38 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 12 Oct 2020 22:04:54 +0000 (22:04 +0000)
commit523d42d1ceb331bdfcf5def04f56652959f0bf97
tree3b6cdb0d922a258a9f74a5ba3c65f6d7b5e838ac
parent0d5a80cb469f515b95e03f23ddaf70c9fd2ecbf2
mem-cache: Create ReplacementPolicy namespace

Encapsulate the replacement policy classes in their own namespace.

As a side effect these classes have been renamed to drop the RP
suffix in the C++ code.

Change-Id: Ibb65dfb584a1413492fcf11833cf91a859cbff4e
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35795
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
30 files changed:
src/mem/cache/prefetch/associative_set.hh
src/mem/cache/prefetch/associative_set_impl.hh
src/mem/cache/prefetch/stride.hh
src/mem/cache/replacement_policies/ReplacementPolicies.py
src/mem/cache/replacement_policies/base.hh
src/mem/cache/replacement_policies/bip_rp.cc
src/mem/cache/replacement_policies/bip_rp.hh
src/mem/cache/replacement_policies/brrip_rp.cc
src/mem/cache/replacement_policies/brrip_rp.hh
src/mem/cache/replacement_policies/fifo_rp.cc
src/mem/cache/replacement_policies/fifo_rp.hh
src/mem/cache/replacement_policies/lfu_rp.cc
src/mem/cache/replacement_policies/lfu_rp.hh
src/mem/cache/replacement_policies/lru_rp.cc
src/mem/cache/replacement_policies/lru_rp.hh
src/mem/cache/replacement_policies/mru_rp.cc
src/mem/cache/replacement_policies/mru_rp.hh
src/mem/cache/replacement_policies/random_rp.cc
src/mem/cache/replacement_policies/random_rp.hh
src/mem/cache/replacement_policies/replaceable_entry.hh
src/mem/cache/replacement_policies/second_chance_rp.cc
src/mem/cache/replacement_policies/second_chance_rp.hh
src/mem/cache/replacement_policies/tree_plru_rp.cc
src/mem/cache/replacement_policies/tree_plru_rp.hh
src/mem/cache/replacement_policies/weighted_lru_rp.cc
src/mem/cache/replacement_policies/weighted_lru_rp.hh
src/mem/cache/tags/base_set_assoc.hh
src/mem/cache/tags/sector_tags.hh
src/mem/ruby/structures/CacheMemory.cc
src/mem/ruby/structures/CacheMemory.hh