diff options
author | Andrew Lukefahr <lukefahr@umich.edu> | 2015-09-15 08:14:07 -0500 |
---|---|---|
committer | Andrew Lukefahr <lukefahr@umich.edu> | 2015-09-15 08:14:07 -0500 |
commit | 543efd5ca687782028fad8873099ad38eeb64085 (patch) | |
tree | f5169ae58d9fda00e1ab708bd5ea4e5698f070aa /src/cpu/pred/tournament.hh | |
parent | fb0f9884e27f33c434ef67a5cfd284331a2a89e0 (diff) | |
download | gem5-543efd5ca687782028fad8873099ad38eeb64085.tar.xz |
cpu: pred: Local Predictor Reset in Tournament Predictor
When a branch gets squashed, it's speculative branch predictor state should get
rolled back in squash(). However, only the globalHistory state was being
rolled back. This patch adds (at least some) support for rolling back the
local predictor state also.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/cpu/pred/tournament.hh')
-rw-r--r-- | src/cpu/pred/tournament.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/pred/tournament.hh b/src/cpu/pred/tournament.hh index d46175610..8fb5b515c 100644 --- a/src/cpu/pred/tournament.hh +++ b/src/cpu/pred/tournament.hh @@ -167,6 +167,7 @@ class TournamentBP : public BPredUnit static int newCount; #endif unsigned globalHistory; + unsigned localHistoryIdx; unsigned localHistory; bool localPredTaken; bool globalPredTaken; |