cpu: Fixed ratio of pred to hyst bits for LTAGE Bimodal
authorPau Cabre <pau.cabre@metempsy.com>
Thu, 8 Nov 2018 23:30:15 +0000 (00:30 +0100)
committerPau Cabre <pau.cabre@metempsy.com>
Wed, 14 Nov 2018 21:44:24 +0000 (21:44 +0000)
commita4a5fa7fa591e91be86223f1fc8936d88255ac13
treed521d4fd4c45764e14e794e04ed7872fb15de33f
parentd8bc7899a97b85600e2e7ba12f2aec3d42fefc66
cpu: Fixed ratio of pred to hyst bits for LTAGE Bimodal

The LTAGE paper states 1 hyst bit shared for 4 pred bits.
Made this ratio configurable use 4 by default.
Also changed the Bimodal structure to use two std::vector<bool> (one for
pred and one for hyst bits)

Change-Id: I6793e8e358be01b75b8fd181ddad50f259862d79
Signed-off-by: Pau Cabre <pau.cabre@metempsy.com>
Reviewed-on: https://gem5-review.googlesource.com/c/14120
Reviewed-by: Ilias Vougioukas <ilias.vougioukas@arm.com>
Reviewed-by: Sudhanshu Jha <sudhanshu.jha@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/cpu/pred/BranchPredictor.py
src/cpu/pred/ltage.cc
src/cpu/pred/ltage.hh