diff options
author | Anthony Gutierrez <atgutier@umich.edu> | 2014-06-30 13:50:03 -0400 |
---|---|---|
committer | Anthony Gutierrez <atgutier@umich.edu> | 2014-06-30 13:50:03 -0400 |
commit | f34a8f0d6163fe82849d494bf78c0f5ec175861c (patch) | |
tree | b3133ce45f089479408e25b73347a14ead3c620f /src/cpu/pred/bpred_unit.cc | |
parent | db267da8221ce4905e08e84967096d7a9fa23ca6 (diff) | |
download | gem5-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.cc | 3 |
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!"); } |