changeset 070529b41c1e in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=070529b41c1e
description:
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:
src/cpu/pred/tournament.cc | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diffs (11 lines):
diff -r 24379f92cc10 -r 070529b41c1e src/cpu/pred/tournament.cc
--- a/src/cpu/pred/tournament.cc Thu May 06 13:41:33 2010 -0700
+++ b/src/cpu/pred/tournament.cc Thu May 13 23:45:57 2010 -0400
@@ -104,7 +104,6 @@
// @todo: Allow for different thresholds between the predictors.
threshold = (1 << (localCtrBits - 1)) - 1;
- threshold = threshold / 2;
}
inline
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev