cpu: Fixed useful counter handling in LTAGE
authorPau Cabre <pau.cabre@metempsy.com>
Sat, 17 Nov 2018 22:21:15 +0000 (23:21 +0100)
committerPau Cabre <pau.cabre@metempsy.com>
Thu, 22 Nov 2018 11:46:54 +0000 (11:46 +0000)
commit290a35401bbd261b4274c82354b03b3ac1898437
tree18e6331bb6b0b2cf1894c1b98d3bfefbf5b2aa56
parent7e48e92888879b7ab81fba82c09ff6f662bb024d
cpu: Fixed useful counter handling in LTAGE

Increased to 2 bits of useful counter per TAGE entry as described in the
LTAGE paper (and made the size configurable)

Changed how the useful counters are incremented/decremented as described
in the LTAGE paper

Change-Id: I8c692cc7c180d29897cb77781681ff498a1d16c8
Signed-off-by: Pau Cabre <pau.cabre@metempsy.com>
Reviewed-on: https://gem5-review.googlesource.com/c/14215
Reviewed-by: Ilias Vougioukas <ilias.vougioukas@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/cpu/pred/BranchPredictor.py
src/cpu/pred/ltage.cc
src/cpu/pred/ltage.hh