Otawa
0.10
|
This class is a simulator Driver that executes the instruction sequence found in a basic block. More...
#include <>>
Public Member Functions | |
BasicBlockDriver (BasicBlock *bb) | |
BasicBlockDriver constructor. More... | |
virtual Inst * | nextInstruction (State &state, Inst *inst) |
This method is called each time the simulator needs the next instruction to execute. More... | |
virtual void | terminateInstruction (State &state, Inst *inst) |
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) |
Private Attributes | |
BasicBlock::InstIter | inst |
This class is a simulator Driver that executes the instruction sequence found in a basic block.
|
inline |
BasicBlockDriver constructor.
bb | Basic block to simulate. |
|
virtualinherited |
Get the lower read address of the last executed instruction.
References otawa::Address::null.
|
virtualinherited |
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. |
Implements otawa::sim::Driver.
References otawa::BasicBlock::InstIter::ended(), inst, otawa::BasicBlock::InstIter::next(), and otawa::sim::State::stop().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
This method is called when an instruction is terminated.
state | Current state of the simulator. |
inst | Terminated instruction. |
Implements otawa::sim::Driver.
|
virtualinherited |
Get the upper read address of the last executed instruction.
References otawa::Address::null.
|
virtualinherited |
Get the upper written address of the last executed instruction.
References otawa::Address::null.
|
private |
Referenced by nextInstruction().