projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16882b0
)
O3: Fix uninitialized variable in the tournament branch predictor.
author
Ali Saidi
<Ali.Saidi@ARM.com>
Sun, 7 Aug 2011 16:21:49 +0000
(09:21 -0700)
committer
Ali Saidi
<Ali.Saidi@ARM.com>
Sun, 7 Aug 2011 16:21:49 +0000
(09:21 -0700)
src/cpu/pred/tournament.cc
patch
|
blob
|
history
diff --git
a/src/cpu/pred/tournament.cc
b/src/cpu/pred/tournament.cc
index ad696f00a21f98de432024c509cbd14950445503..9608dc01155357757489e0f8408ac4139ee3bb24 100644
(file)
--- 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();