cpu: fix bimodal predictor to use correct global history reg
authorDam Sunwoo <dam.sunwoo@arm.com>
Wed, 3 Sep 2014 11:42:41 +0000 (07:42 -0400)
committerDam Sunwoo <dam.sunwoo@arm.com>
Wed, 3 Sep 2014 11:42:41 +0000 (07:42 -0400)
commit5008a20aa4585f052c145a0d6d72c5aab75e77a7
treee3f962fe7311c23384cb75a5626d3b2f889be1ae
parent476c6fe36884ac435ca2f14eee79d5019d4f554f
cpu: fix bimodal predictor to use correct global history reg

A small bug in the bimodal predictor caused significant degradation in
performance on some benchmarks. This was caused by using the wrong
globalHistoryReg during the update phase. This patches fixes the bug
and brings the performance to normal level.
src/cpu/pred/bi_mode.cc