Otawa
0.10
|
This class is used to drive a simulator. More...
#include <>>
Public Member Functions | |
virtual | ~Driver (void) |
virtual Inst * | nextInstruction (State &state, Inst *inst)=0 |
This method is called each time the simulator needs the next instruction to execute. More... | |
virtual void | terminateInstruction (State &state, Inst *inst)=0 |
This method is called when an instruction is terminated. More... | |
virtual Address | lowerRead (void) |
Get the lower read address of the last executed instruction. More... | |
virtual Address | upperRead (void) |
Get the upper read address of the last executed instruction. More... | |
virtual Address | lowerWrite (void) |
Get the lower written address of the last executed instruction. More... | |
virtual Address | upperWrite (void) |
Get the upper written address of the last executed instruction. More... | |
virtual void | redirect (State &state, Inst *branch, bool direction) |
virtual bool | PredictBranch (State &state, Inst *branch, bool pred) |
This class is used to drive a simulator.
The simulator will call methods of this class in order to get next instruction to execution or to inform it about a finishing instruction.
|
virtual |
|
virtual |
Get the lower read address of the last executed instruction.
References otawa::Address::null.
|
virtual |
Get the lower written address of the last executed instruction.
References otawa::Address::null.
This method is called each time the simulator needs the next instruction to execute.
state | Current state of the simulator. |
inst | Next instruction proposed by the simulator. If the simulator does not handle the semantics of instructions, it is juste the next instruction. |
Implemented in otawa::sim::BBPathDriver, and otawa::sim::BasicBlockDriver.
|
inlinevirtual |
|
inlinevirtual |
This method is called when an instruction is terminated.
state | Current state of the simulator. |
inst | Terminated instruction. |
Implemented in otawa::sim::BBPathDriver, and otawa::sim::BasicBlockDriver.
|
virtual |
Get the upper read address of the last executed instruction.
References otawa::Address::null.
|
virtual |
Get the upper written address of the last executed instruction.
References otawa::Address::null.