base: Templatize SatCounter
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 5 Nov 2020 23:27:23 +0000 (00:27 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Sat, 14 Nov 2020 10:01:43 +0000 (10:01 +0000)
commit37add2103c50770efe31f9e0810bb93bfada217d
treeff709a4aa5fe47337371e69821e5b5eecf9acceb
parent8e34e0b92015f24969f4710da5f765c6faf8bbb7
base: Templatize SatCounter

Allow SatCounter to have larger unsigned types to accomodate
larger counters.

The template decision was taken because some predictors will
generate huge arrays of small counters, so smaller types will
lessen their overhead; however, isolated counters may require
any counter size.

Jira: https://gem5.atlassian.net/browse/GEM5-813

Change-Id: I5475a565ea7b97d1dfc176fa9d7cf827560fbe39
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37135
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/sat_counter.hh
src/base/sat_counter.test.cc