Otawa
0.10
|
#include <otawa/prog/Process.h>
Public Member Functions | |
SimState (Process *process) | |
Build the simulator state. More... | |
virtual | ~SimState (void) |
Process * | process (void) const |
virtual Inst * | execute (Inst *inst)=0 |
virtual void | setSP (const Address &addr) |
Set the current value of the SP. More... | |
virtual t::uint32 | getReg (hard::Register *r) |
Get register value from the state. More... | |
virtual void | setReg (hard::Register *r, t::uint32 v) |
Set register value in the state. 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... | |
Private Attributes | |
Process * | proc |
otawa::SimState::SimState | ( | Process * | process | ) |
Build the simulator state.
process | Owner processor (to check consistency). |
References proc.
|
virtual |
|
virtual |
Get register value from the state.
r | Looked register. |
|
virtual |
Get the lower read address of the last executed instruction.
References otawa::MEMORY_ACCESSES, and process().
|
virtual |
Get the lower written address of the last executed instruction.
References otawa::MEMORY_ACCESSES, and process().
|
inline |
References proc.
Referenced by lowerRead(), lowerWrite(), upperRead(), and upperWrite().
|
virtual |
Set register value in the state.
r | Register to change. |
v | Value to set. |
|
virtual |
Set the current value of the SP.
|
virtual |
Get the upper read address of the last executed instruction.
References otawa::MEMORY_ACCESSES, and process().
|
virtual |
Get the upper written address of the last executed instruction.
References otawa::MEMORY_ACCESSES, and process().
|
private |
Referenced by SimState().