Otawa
0.10
|
The trivial simulator is a simplistic simulator with a fixed execution time for each instruction (defined by otawa::sim::INSTRUCTION_TIME). More...
#include <otawa/sim/TrivialSimulator.h>
Public Member Functions | |
TrivialSimulator (void) | |
Build a trivial simulator. More... | |
virtual State * | instantiate (WorkSpace *fw, const PropList &props=PropList::EMPTY) |
This method instantiate a new simulator using the given framework. More... | |
The trivial simulator is a simplistic simulator with a fixed execution time for each instruction (defined by otawa::sim::INSTRUCTION_TIME).
It only accepts structural simulator (otawa::sim::IS_STRUCTURAL) wtihout management of memory and control (otawa::sim::USE_MEMORY and otawa::sim::USE_CONTROL).
otawa::sim::TrivialSimulator::TrivialSimulator | ( | void | ) |
Build a trivial simulator.
|
virtual |
This method instantiate a new simulator using the given framework.
It must be implemented by actual simulator plugins.
fw | Framework to use. |
props | Properties for tuning the built simulator. |
otawa::sim::Exception | If there is an error. |
Implements otawa::sim::Simulator.
References otawa::sim::INSTRUCTION_TIME, otawa::sim::IS_FUNCTIONAL, otawa::sim::USE_CONTROL, and otawa::sim::USE_MEMORY.