From: Ali Saidi Date: Sun, 7 Aug 2011 16:21:49 +0000 (-0700) Subject: O3: Fix uninitialized variable in the tournament branch predictor. X-Git-Tag: stable_2012_02_02~148 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d83b8a7995126f383c518124ae4459c53aa9899;p=gem5.git O3: Fix uninitialized variable in the tournament branch predictor. --- diff --git a/src/cpu/pred/tournament.cc b/src/cpu/pred/tournament.cc index ad696f00a..9608dc011 100644 --- a/src/cpu/pred/tournament.cc +++ b/src/cpu/pred/tournament.cc @@ -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(history); updateGlobalHistTaken();