29 #ifndef __CPU_PRED_INDIRECT_BASE_HH__ 30 #define __CPU_PRED_INDIRECT_BASE_HH__ 32 #include "arch/isa_traits.hh" 33 #include "config/the_isa.hh" 35 #include "params/IndirectPredictor.hh" 42 typedef IndirectPredictorParams
Params;
54 void * indirect_history) = 0;
62 void * indirect_history,
63 bool actually_taken) = 0;
66 #endif // __CPU_PRED_INDIRECT_BASE_HH__ virtual void deleteIndirectInfo(ThreadID tid, void *indirect_history)=0
virtual void recordIndirect(Addr br_addr, Addr tgt_addr, InstSeqNum seq_num, ThreadID tid)=0
virtual void genIndirectInfo(ThreadID tid, void *&indirect_history)=0
virtual void updateDirectionInfo(ThreadID tid, bool actually_taken)=0
virtual void commit(InstSeqNum seq_num, ThreadID tid, void *indirect_history)=0
virtual void changeDirectionPrediction(ThreadID tid, void *indirect_history, bool actually_taken)=0
virtual bool lookup(Addr br_addr, TheISA::PCState &br_target, ThreadID tid)=0
virtual void squash(InstSeqNum seq_num, ThreadID tid)=0
const Params * params() const
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
IndirectPredictor(const Params *params)
int16_t ThreadID
Thread index/ID type.
GenericISA::DelaySlotPCState< MachInst > PCState
IndirectPredictorParams Params
Abstract superclass for simulation objects.
virtual void recordTarget(InstSeqNum seq_num, void *indirect_history, const TheISA::PCState &target, ThreadID tid)=0