summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorMaximilien Breughe <Maximilien.Breughe@elis.ugent.be>2010-05-13 23:45:57 -0400
committerMaximilien Breughe <Maximilien.Breughe@elis.ugent.be>2010-05-13 23:45:57 -0400
commitfc746c2268bfceded0014749cddd8234fa55a35a (patch)
treebf84c4e42a67f06185032891532979a9872294a1 /src/cpu
parentd9845938554c47ab26847d8ea7a5d4f44e4a908b (diff)
downloadgem5-fc746c2268bfceded0014749cddd8234fa55a35a.tar.xz
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.
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/pred/tournament.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cpu/pred/tournament.cc b/src/cpu/pred/tournament.cc
index 223e45333..96ee87615 100644
--- a/src/cpu/pred/tournament.cc
+++ b/src/cpu/pred/tournament.cc
@@ -104,7 +104,6 @@ TournamentBP::TournamentBP(unsigned _localPredictorSize,
// @todo: Allow for different thresholds between the predictors.
threshold = (1 << (localCtrBits - 1)) - 1;
- threshold = threshold / 2;
}
inline