summaryrefslogtreecommitdiff
path: root/src/cpu/pred/tournament.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/pred/tournament.cc')
-rw-r--r--src/cpu/pred/tournament.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/pred/tournament.cc b/src/cpu/pred/tournament.cc
index ea6be46fa..2dd48a09c 100644
--- a/src/cpu/pred/tournament.cc
+++ b/src/cpu/pred/tournament.cc
@@ -388,6 +388,12 @@ TournamentBPParams::create()
return new TournamentBP(this);
}
+unsigned
+TournamentBP::getGHR(void *bp_history) const
+{
+ return static_cast<BPHistory *>(bp_history)->globalHistory;
+}
+
#ifdef DEBUG
int
TournamentBP::BPHistory::newCount = 0;