summaryrefslogtreecommitdiff
path: root/src/cpu/pred/tournament.hh
diff options
context:
space:
mode:
authorAndrew Lukefahr <lukefahr@umich.edu>2015-09-15 08:14:07 -0500
committerAndrew Lukefahr <lukefahr@umich.edu>2015-09-15 08:14:07 -0500
commit543efd5ca687782028fad8873099ad38eeb64085 (patch)
treef5169ae58d9fda00e1ab708bd5ea4e5698f070aa /src/cpu/pred/tournament.hh
parentfb0f9884e27f33c434ef67a5cfd284331a2a89e0 (diff)
downloadgem5-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.hh1
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;