cpu: Fix bi-mode branch predictor thresholds
authorRico Amslinger <rico.amslinger@informatik.uni-augsburg.de>
Thu, 24 Aug 2017 13:07:44 +0000 (15:07 +0200)
committerRico Amslinger <rico.amslinger@informatik.uni-augsburg.de>
Wed, 6 Sep 2017 07:39:11 +0000 (07:39 +0000)
commit725b19a8154fa557ab3057f07d7cd3c6d798789d
tree014dd92e03bbb9927302fc2e71931893df9bae69
parent29d7c72b89949199653ab05f5bbb298c733b08b7
cpu: Fix bi-mode branch predictor thresholds

When different sizes were set for the choice and global saturation
counter (e.g. ex5_big), the threshold calculation used the wrong
size. Thus the branch predictor always predicted "not taken" for
choice > global.

Change-Id: I076549ff1482e2280cef24a0d16b7bb2122d4110
Reviewed-on: https://gem5-review.googlesource.com/4560
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/cpu/pred/bi_mode.cc