diff --git a/src/cpu/pred/bpred_unit.hh b/src/cpu/pred/bpred_unit.hh index c4dbad2b00..3ca6fa86a8 100644 --- a/src/cpu/pred/bpred_unit.hh +++ b/src/cpu/pred/bpred_unit.hh @@ -177,8 +177,7 @@ class BPredUnit : public SimObject */ virtual void update(ThreadID tid, Addr instPC, bool taken, void *bp_history, bool squashed, - const StaticInstPtr & inst = StaticInst::nullStaticInstPtr, - Addr corrTarget = MaxAddr) = 0; + const StaticInstPtr &inst, Addr corrTarget) = 0; /** * Updates the BTB with the target of a branch. * @param inst_PC The branch's PC that will be updated. diff --git a/src/cpu/pred/ltage.hh b/src/cpu/pred/ltage.hh index 53081dae41..0bbac81d15 100644 --- a/src/cpu/pred/ltage.hh +++ b/src/cpu/pred/ltage.hh @@ -66,7 +66,7 @@ class LTAGE : public TAGE void squash(ThreadID tid, void *bp_history) override; void update(ThreadID tid, Addr branch_addr, bool taken, void *bp_history, bool squashed, const StaticInstPtr & inst, - Addr corrTarget = MaxAddr) override; + Addr corrTarget) override; void init() override; virtual void regStats() override; diff --git a/src/cpu/pred/multiperspective_perceptron.hh b/src/cpu/pred/multiperspective_perceptron.hh index 9d45032443..c225aa4c33 100644 --- a/src/cpu/pred/multiperspective_perceptron.hh +++ b/src/cpu/pred/multiperspective_perceptron.hh @@ -1029,7 +1029,7 @@ class MultiperspectivePerceptron : public BPredUnit void update(ThreadID tid, Addr instPC, bool taken, void *bp_history, bool squashed, const StaticInstPtr & inst, - Addr corrTarget = MaxAddr) override; + Addr corrTarget) override; void btbUpdate(ThreadID tid, Addr branch_addr, void* &bp_history) override; }; #endif//__CPU_PRED_MULTIPERSPECTIVE_PERCEPTRON_HH__ diff --git a/src/cpu/pred/multiperspective_perceptron_tage.hh b/src/cpu/pred/multiperspective_perceptron_tage.hh index b18774e54e..366f7b8aae 100644 --- a/src/cpu/pred/multiperspective_perceptron_tage.hh +++ b/src/cpu/pred/multiperspective_perceptron_tage.hh @@ -228,7 +228,7 @@ class MultiperspectivePerceptronTAGE : public MultiperspectivePerceptron void update(ThreadID tid, Addr instPC, bool taken, void *bp_history, bool squashed, const StaticInstPtr & inst, - Addr corrTarget = MaxAddr) override; + Addr corrTarget) override; void uncondBranch(ThreadID tid, Addr pc, void * &bp_history) override; void squash(ThreadID tid, void *bp_history) override; diff --git a/src/cpu/pred/tage.hh b/src/cpu/pred/tage.hh index a585717739..b32ce6746d 100644 --- a/src/cpu/pred/tage.hh +++ b/src/cpu/pred/tage.hh @@ -85,7 +85,7 @@ class TAGE: public BPredUnit void btbUpdate(ThreadID tid, Addr branch_addr, void* &bp_history) override; void update(ThreadID tid, Addr branch_addr, bool taken, void *bp_history, bool squashed, const StaticInstPtr & inst, - Addr corrTarget = MaxAddr) override; + Addr corrTarget) override; virtual void squash(ThreadID tid, void *bp_history) override; }; diff --git a/src/cpu/pred/tage_sc_l.hh b/src/cpu/pred/tage_sc_l.hh index b3629ab7e9..71f9c1766d 100644 --- a/src/cpu/pred/tage_sc_l.hh +++ b/src/cpu/pred/tage_sc_l.hh @@ -158,7 +158,7 @@ class TAGE_SC_L: public LTAGE void update(ThreadID tid, Addr branch_addr, bool taken, void *bp_history, bool squashed, const StaticInstPtr & inst, - Addr corrTarget = MaxAddr) override; + Addr corrTarget) override; protected: