mem-cache: Use set and way for ReplaceableEntry
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Fri, 7 Sep 2018 12:33:00 +0000 (14:33 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 10 Oct 2018 18:17:42 +0000 (18:17 +0000)
commit8f58d9fb87c521674f11c78b8939e5ffdf851d39
tree0c85323aba79d385befe368ac47797a27f3b8a4a
parentd204e56b2b9b8ad561fc258ebdc50ae8365159e1
mem-cache: Use set and way for ReplaceableEntry

Replaceable entries belong to table-like structures, and therefore
they should be indexable by combining a row and a column. These,
using conventional cache nomenclature translate to sets and ways.

Make these entries aware of their sets and ways. The idea is to
make indexing policies usable by other table-like structures. In
order to do so we move sets and ways to ReplaceableEntry, which
will be the common base among table entries.

Change-Id: If0e3dacf9ea2f523af9cface067469ccecf82648
Reviewed-on: https://gem5-review.googlesource.com/c/12764
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/mem/cache/blk.hh
src/mem/cache/replacement_policies/base.hh
src/mem/cache/tags/base.cc
src/mem/cache/tags/base_set_assoc.cc
src/mem/cache/tags/base_set_assoc.hh
src/mem/cache/tags/fa_lru.cc
src/mem/cache/tags/sector_tags.cc
src/mem/cache/tags/skewed_assoc.cc