From 4d83b8a7995126f383c518124ae4459c53aa9899 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Sun, 7 Aug 2011 09:21:49 -0700 Subject: O3: Fix uninitialized variable in the tournament branch predictor. --- src/cpu/pred/tournament.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cpu/pred/tournament.cc') 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(); -- cgit v1.2.3