BPRED: Fixed the treshold-bug in the tournament predictor.
authorMaximilien Breughe <Maximilien.Breughe@elis.ugent.be>
Fri, 14 May 2010 03:45:57 +0000 (23:45 -0400)
committerMaximilien Breughe <Maximilien.Breughe@elis.ugent.be>
Fri, 14 May 2010 03:45:57 +0000 (23:45 -0400)
commitfc746c2268bfceded0014749cddd8234fa55a35a
treebf84c4e42a67f06185032891532979a9872294a1
parentd9845938554c47ab26847d8ea7a5d4f44e4a908b
BPRED: Fixed the treshold-bug in the tournament predictor.

Suppose the saturating counters of a branch predictor contain n bits.  When the
counter is between 0 and (2^(n-1) - 1), boundaries included, the branch is
predicted as not taken.  When the counter is between 2^(n-1) and (2^n - 1),
boundaries included, the branch is predicted as taken.
src/cpu/pred/tournament.cc