mem-cache: Use SatCounter for prefetchers
authorDaniel <odanrc@yahoo.com.br>
Thu, 11 Apr 2019 06:37:56 +0000 (08:37 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 14 May 2019 07:55:06 +0000 (07:55 +0000)
commitc1bd27907d9404ba0803495d8eb5c9ad8513f09f
treea8447ce260a1a810a53c00eeeea6c42af06f9596
parent50a533f10134e7bc377dfdb9209b0334fd01cd24
mem-cache: Use SatCounter for prefetchers

Many prefetchers re-implement saturating counters with ints. Make
them use SatCounters instead.

Added missing operators and constructors to SatCounter for that to
be possible and their respective tests.

Change-Id: I36f10c89c27c9b3d1bf461e9ea546920f6ebb888
Signed-off-by: Daniel <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17995
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Javier Bueno Hedo <javier.bueno@metempsy.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/mem/cache/prefetch/Prefetcher.py
src/mem/cache/prefetch/indirect_memory.cc
src/mem/cache/prefetch/indirect_memory.hh
src/mem/cache/prefetch/irregular_stream_buffer.cc
src/mem/cache/prefetch/irregular_stream_buffer.hh
src/mem/cache/prefetch/signature_path.cc
src/mem/cache/prefetch/signature_path.hh
src/mem/cache/prefetch/signature_path_v2.cc
src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc
src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh