summaryrefslogtreecommitdiff
path: root/src/cpu/pred/tournament.cc
diff options
context:
space:
mode:
authorJairo Balart <jairo.balart@metempsy.com>2019-01-06 20:35:11 +0100
committerPau Cabre <pau.cabre@metempsy.com>2019-02-08 22:31:27 +0000
commitbcf6983bc605b884fba52ec74634bddfd395cd5e (patch)
tree1ee849f2a930205851dbeeaf173dbe048affed0e /src/cpu/pred/tournament.cc
parent4f4846c5327e4780bd8e714bada80bd15dc1fc51 (diff)
downloadgem5-bcf6983bc605b884fba52ec74634bddfd395cd5e.tar.xz
cpu: Proposal for changing the indirect branch predictor interface
Now the indirect branch predictor handles its own GHR instead of getting the one from the direction predictor. Also, now the commit method of the indirect predictor is called for every pending branch on an update, as the indirect predictors may want to update their interal structures/histories with the information of each branch. Change-Id: I7053fbea42a53960a3bc1ba32912cc99c160511e Reviewed-on: https://gem5-review.googlesource.com/c/15318 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/cpu/pred/tournament.cc')
-rw-r--r--src/cpu/pred/tournament.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cpu/pred/tournament.cc b/src/cpu/pred/tournament.cc
index 6ed208b1a..67beb09ef 100644
--- a/src/cpu/pred/tournament.cc
+++ b/src/cpu/pred/tournament.cc
@@ -366,12 +366,6 @@ TournamentBPParams::create()
return new TournamentBP(this);
}
-unsigned
-TournamentBP::getGHR(ThreadID tid, void *bp_history) const
-{
- return static_cast<BPHistory *>(bp_history)->globalHistory;
-}
-
#ifdef DEBUG
int
TournamentBP::BPHistory::newCount = 0;