diff options
author | Dibakar Gope <gope@wisc.edu> | 2015-04-13 17:33:57 -0500 |
---|---|---|
committer | Dibakar Gope <gope@wisc.edu> | 2015-04-13 17:33:57 -0500 |
commit | 34ad1123ee5927e3b1503f07649620a533d3eab9 (patch) | |
tree | e655941704abbbafad01966bfa188449a336aaef /src/cpu/pred/2bit_local.hh | |
parent | e596e524985cfb1f4d46aceebe69bb7fcd94cf04 (diff) | |
download | gem5-34ad1123ee5927e3b1503f07649620a533d3eab9.tar.xz |
cpu: re-organizes the branch predictor structure.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/cpu/pred/2bit_local.hh')
-rw-r--r-- | src/cpu/pred/2bit_local.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cpu/pred/2bit_local.hh b/src/cpu/pred/2bit_local.hh index e008c6232..61e2dc24e 100644 --- a/src/cpu/pred/2bit_local.hh +++ b/src/cpu/pred/2bit_local.hh @@ -49,6 +49,7 @@ #include "base/types.hh" #include "cpu/pred/bpred_unit.hh" #include "cpu/pred/sat_counter.hh" +#include "params/LocalBP.hh" /** * Implements a local predictor that uses the PC to index into a table of @@ -63,9 +64,9 @@ class LocalBP : public BPredUnit /** * Default branch predictor constructor. */ - LocalBP(const Params *params); + LocalBP(const LocalBPParams *params); - virtual void uncondBranch(void * &bp_history); + virtual void uncondBranch(Addr pc, void * &bp_history); /** * Looks up the given address in the branch predictor and returns @@ -124,9 +125,6 @@ class LocalBP : public BPredUnit /** Number of bits of the local predictor's counters. */ unsigned localCtrBits; - /** Number of bits to shift the PC when calculating index. */ - unsigned instShiftAmt; - /** Mask to get index bits. */ unsigned indexMask; }; |