summaryrefslogtreecommitdiff
path: root/src/cpu/pred/bpred_unit.cc
diff options
context:
space:
mode:
authorAnthony Gutierrez <atgutier@umich.edu>2014-06-30 13:50:03 -0400
committerAnthony Gutierrez <atgutier@umich.edu>2014-06-30 13:50:03 -0400
commitf34a8f0d6163fe82849d494bf78c0f5ec175861c (patch)
treeb3133ce45f089479408e25b73347a14ead3c620f /src/cpu/pred/bpred_unit.cc
parentdb267da8221ce4905e08e84967096d7a9fa23ca6 (diff)
downloadgem5-f34a8f0d6163fe82849d494bf78c0f5ec175861c.tar.xz
cpu: implement a bi-mode branch predictor
Diffstat (limited to 'src/cpu/pred/bpred_unit.cc')
-rw-r--r--src/cpu/pred/bpred_unit.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/pred/bpred_unit.cc b/src/cpu/pred/bpred_unit.cc
index 52a77119c..585f7c2d8 100644
--- a/src/cpu/pred/bpred_unit.cc
+++ b/src/cpu/pred/bpred_unit.cc
@@ -32,6 +32,7 @@
*/
#include "cpu/pred/2bit_local.hh"
+#include "cpu/pred/bi_mode.hh"
#include "cpu/pred/bpred_unit_impl.hh"
#include "cpu/pred/tournament.hh"
@@ -43,6 +44,8 @@ BranchPredictorParams::create()
return new LocalBP(this);
} else if (predType == "tournament") {
return new TournamentBP(this);
+ } else if (predType == "bi-mode") {
+ return new BiModeBP(this);
} else {
fatal("Invalid BP selected!");
}