changeset 1b627a6ddac0 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=1b627a6ddac0
description:
        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.

diffstat:

 src/cpu/pred/bi_mode.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5e424aa952c5 -r 1b627a6ddac0 src/cpu/pred/bi_mode.cc
--- a/src/cpu/pred/bi_mode.cc   Wed Sep 03 07:42:40 2014 -0400
+++ b/src/cpu/pred/bi_mode.cc   Wed Sep 03 07:42:41 2014 -0400
@@ -167,7 +167,7 @@
         unsigned choiceHistoryIdx = ((branchAddr >> instShiftAmt)
                                     & choiceHistoryMask);
         unsigned globalHistoryIdx = (((branchAddr >> instShiftAmt)
-                                    ^ globalHistoryReg)
+                                    ^ history->globalHistoryReg)
                                     & globalHistoryMask);
 
         assert(choiceHistoryIdx < choicePredictorSize);
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to