mem-cache: Use AssociativeSet in Stride prefetcher
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Sun, 29 Dec 2019 09:14:26 +0000 (10:14 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 1 May 2020 13:38:16 +0000 (13:38 +0000)
commit28482880974510a267acfd3f16d793e8c2ab324d
tree6165ba16af3a41c611a85a9d2e30888cd8b45b36
parent31b34874d50ff678ad3269aa665db0ad31358e26
mem-cache: Use AssociativeSet in Stride prefetcher

Avoid replicating associative set functionality in Stride prefetcher's
pc tables.

The indexing policy used previously had some peculiarities, so both
the extractTag and extractSet have been made virtual so that previous
behavior could be kept.

Change-Id: I19a86cb3c4b40031fef427d5f7eed9d5c5673a44
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24603
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/prefetch/Prefetcher.py
src/mem/cache/prefetch/stride.cc
src/mem/cache/prefetch/stride.hh
src/mem/cache/tags/indexing_policies/base.hh
src/mem/cache/tags/indexing_policies/set_associative.hh