summaryrefslogtreecommitdiff
path: root/src/cpu/pred
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2011-08-07 09:21:49 -0700
committerAli Saidi <Ali.Saidi@ARM.com>2011-08-07 09:21:49 -0700
commit4d83b8a7995126f383c518124ae4459c53aa9899 (patch)
tree0a858e6452553e0495685014aaa1b3e53ee9c5af /src/cpu/pred
parent16882b04838c33e7de5456937b8b069547827b2a (diff)
downloadgem5-4d83b8a7995126f383c518124ae4459c53aa9899.tar.xz
O3: Fix uninitialized variable in the tournament branch predictor.
Diffstat (limited to 'src/cpu/pred')
-rw-r--r--src/cpu/pred/tournament.cc1
1 files changed, 1 insertions, 0 deletions
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<void *>(history);
updateGlobalHistTaken();