7 #ifndef OTAWA_SIM_DRIVER_H
8 #define OTAWA_SIM_DRIVER_H
47 #endif // OTAWA_SIM_DRIVER_H
struct otawa::sem::inst inst
virtual Inst * nextInstruction(State &state, Inst *inst)=0
This method is called each time the simulator needs the next instruction to execute.
virtual ~Driver(void)
Definition: sim_Driver.cpp:22
virtual void terminateInstruction(State &state, Inst *inst)=0
This method is called when an instruction is terminated.
virtual Address upperRead(void)
Get the upper read address of the last executed instruction.
Definition: sim_Driver.cpp:58
This class is used to drive a simulator.
Definition: Driver.h:23
virtual Address upperWrite(void)
Get the upper written address of the last executed instruction.
Definition: sim_Driver.cpp:76
virtual bool PredictBranch(State &state, Inst *branch, bool pred)
Definition: Driver.h:40
The representation of an address in OTAWA.
Definition: base.h:54
virtual void redirect(State &state, Inst *branch, bool direction)
Definition: Driver.h:38
virtual Address lowerRead(void)
Get the lower read address of the last executed instruction.
Definition: sim_Driver.cpp:49
virtual Address lowerWrite(void)
Get the lower written address of the last executed instruction.
Definition: sim_Driver.cpp:67
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
This class represents a running simulator.
Definition: State.h:38
inst branch(int to)
Definition: inst.h:149