cpu: Revamp saturating counters
authorDaniel <odanrc@yahoo.com.br>
Fri, 5 Apr 2019 09:28:53 +0000 (11:28 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 14 May 2019 07:55:06 +0000 (07:55 +0000)
commit0def916836a5cfb570e765d2e1e4774419b56ec6
treeea964e085ea236f2829bcb3520a7a6befabd4385
parente541767279f7d8b47f9892145a02f1f5c859be89
cpu: Revamp saturating counters

Revamp the SatCounter class, improving comments, implementing
increment, decrement and read operators to solve an old todo,
and adding missing error checking.

Change-Id: Ia057c423c90652ebd966b6b91a3471b17800f933
Signed-off-by: Daniel <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17992
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/pred/2bit_local.cc
src/cpu/pred/2bit_local.hh
src/cpu/pred/bi_mode.cc
src/cpu/pred/bi_mode.hh
src/cpu/pred/sat_counter.hh
src/cpu/pred/tournament.cc
src/cpu/pred/tournament.hh