base: Add function to saturate SatCounter
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 29 May 2019 19:15:06 +0000 (21:15 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 29 Aug 2019 20:19:05 +0000 (20:19 +0000)
commitfc528bb0c0d2c6fe1ae55e9aa5be8652cc3fd456
tree559dca56c6f3fde1035f16298a165e72e97b75ac
parent51d38a4b79d54a97d438ecdba5ce94d6e9172eef
base: Add function to saturate SatCounter

Create a saturation function for the SatCounter that makes its
internal counter reach its maximum value.

Change-Id: Ibd30fa27c4ae2714dd48e3eba85addd035fb737c
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20451
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/sat_counter.hh
src/base/sat_counter.test.cc