O3: Fix uninitialized variable in the tournament branch predictor.
authorAli Saidi <Ali.Saidi@ARM.com>
Sun, 7 Aug 2011 16:21:49 +0000 (09:21 -0700)
committerAli Saidi <Ali.Saidi@ARM.com>
Sun, 7 Aug 2011 16:21:49 +0000 (09:21 -0700)
src/cpu/pred/tournament.cc

index ad696f00a21f98de432024c509cbd14950445503..9608dc01155357757489e0f8408ac4139ee3bb24 100644 (file)
@@ -221,6 +221,7 @@ TournamentBP::uncondBr(void * &bp_history)
     history->globalHistory = globalHistory;
     history->localPredTaken = true;
     history->globalPredTaken = true;
+    history->globalUsed = true;
     bp_history = static_cast<void *>(history);
 
     updateGlobalHistTaken();