Transaction-Level Modeling Framework for Space Applications
#include <execLoader.hpp>
Public Member Functions | |
ExecLoader (std::string fileName, bool plainFile=false) | |
~ExecLoader () | |
unsigned int | getProgStart () |
unsigned int | getDataStart () |
unsigned int | getProgDim () |
Returns the dimension of the loaded program. More... | |
unsigned char * | getProgData () |
Returns a pointer to the array contianing the program data. More... | |
Initializes the loader of executable files by creating the corresponding bfd image of the executable file specified as parameter
Here I simply have to read the input file, putting all the bytes of its content in the programData array
References usi.cci.parameter::exists, trap::ELFFrontend::getInstance(), getProgDim(), and THROW_EXCEPTION.
trap::ExecLoader::~ExecLoader | ( | ) |
unsigned int trap::ExecLoader::getDataStart | ( | ) |
Returns the start address of the program being loaded (the lowest address of the program)
References THROW_ERROR.
Referenced by sc_main().
unsigned char * trap::ExecLoader::getProgData | ( | ) |
Returns a pointer to the array contianing the program data.
References THROW_ERROR.
Referenced by sc_main().
unsigned int trap::ExecLoader::getProgDim | ( | ) |
Returns the dimension of the loaded program.
References THROW_ERROR.
Referenced by ExecLoader(), and sc_main().
unsigned int trap::ExecLoader::getProgStart | ( | ) |
Returns the entry point of the loaded program (usually the same as the program start address, but not always)
References THROW_ERROR.
Referenced by sc_main().