*/
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.
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;
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__
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;
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;
};
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: