OpenASIP
2.0
|
#include <TestOsal.hh>
Public Member Functions | |
TesterContext () | |
virtual | ~TesterContext () |
void | stop () |
bool | cont () const |
OperationContext & | operationContext () |
std::string | outputFormat () const |
void | setOutputFormat (std::string outputFormat) |
std::string | toOutputFormat (SimValue *value) |
InstructionAddress & | programCounter () |
SimValue & | returnAddress () |
SimValue & | syscallHandler () |
SimValue & | syscallNumber () |
Public Member Functions inherited from InterpreterContext | |
InterpreterContext () | |
virtual | ~InterpreterContext () |
Private Attributes | |
bool | continue_ |
Flag indicating whether program can continue or not. More... | |
SimValue | returnAddressStorage_ |
InstructionAddress | programCounterStorage_ |
InstructionAddress | irfStartStorage_ |
int | branchDelayCycles_ |
std::string | outputFormat_ |
Indicates which output format is used currently. More... | |
OperationContext | opContext_ |
The operation context shared with all operations invoked in the application. More... | |
Operation context for the program.
Definition at line 212 of file TestOsal.hh.
TesterContext::TesterContext | ( | ) |
|
virtual |
bool TesterContext::cont | ( | ) | const |
Return true, if program can continue, false otherwise.
Definition at line 441 of file TestOsal.cc.
References continue_.
Referenced by main().
OperationContext & TesterContext::operationContext | ( | ) |
Returns the operation context shared with all operations invoked in the application.
Definition at line 453 of file TestOsal.cc.
References opContext_.
Referenced by main(), and OsalInterpreter::operation().
string TesterContext::outputFormat | ( | ) | const |
Returns the output format currently in use.
Definition at line 463 of file TestOsal.cc.
References outputFormat_.
Referenced by setOutputFormat().
InstructionAddress & TesterContext::programCounter | ( | ) |
Returns the program counter as SimValue.
Definition at line 527 of file TestOsal.cc.
References opContext_, and OperationContext::programCounter().
SimValue & TesterContext::returnAddress | ( | ) |
Returns the return address as SimValue.
Definition at line 537 of file TestOsal.cc.
References opContext_, and OperationContext::returnAddress().
void TesterContext::setOutputFormat | ( | std::string | outputFormat | ) |
Sets the output format to be used in the future.
The | output format to be used in the future. |
Definition at line 473 of file TestOsal.cc.
References outputFormat(), and outputFormat_.
void TesterContext::stop | ( | ) |
Sets the continue_ flag off.
Definition at line 431 of file TestOsal.cc.
References continue_.
Referenced by CmdQuit::execute().
SimValue& TesterContext::syscallHandler | ( | ) |
SimValue& TesterContext::syscallNumber | ( | ) |
string TesterContext::toOutputFormat | ( | SimValue * | value | ) |
Converts given SimValue to output string.
value | Value to be converted. |
Definition at line 484 of file TestOsal.cc.
References SimValue::binaryValue(), SimValue::doubleWordValue(), SimValue::floatWordValue(), SimValue::halfFloatWordValue(), SimValue::hexValue(), CmdOutput::OUTPUT_FORMAT_BIN, CmdOutput::OUTPUT_FORMAT_DOUBLE, CmdOutput::OUTPUT_FORMAT_FLOAT, CmdOutput::OUTPUT_FORMAT_HALF, CmdOutput::OUTPUT_FORMAT_HEX, CmdOutput::OUTPUT_FORMAT_INT_SIGNED, CmdOutput::OUTPUT_FORMAT_INT_UNSIGNED, CmdOutput::OUTPUT_FORMAT_LONG_SIGNED, CmdOutput::OUTPUT_FORMAT_LONG_UNSIGNED, outputFormat_, SimValue::sLongWordValue(), Conversion::toString(), SimValue::uLongWordValue(), and SimValue::width().
|
private |
Definition at line 234 of file TestOsal.hh.
|
private |
Flag indicating whether program can continue or not.
Definition at line 230 of file TestOsal.hh.
|
private |
Definition at line 233 of file TestOsal.hh.
|
private |
The operation context shared with all operations invoked in the application.
Definition at line 239 of file TestOsal.hh.
Referenced by operationContext(), programCounter(), and returnAddress().
|
private |
Indicates which output format is used currently.
Definition at line 236 of file TestOsal.hh.
Referenced by outputFormat(), setOutputFormat(), and toOutputFormat().
|
private |
Definition at line 232 of file TestOsal.hh.
|
private |
Definition at line 231 of file TestOsal.hh.