gem5 v24.0.0.0
|
#include <sc_main_fiber.hh>
Public Member Functions | |
ScMainFiber () | |
int | argc () |
const char *const * | argv () |
std::string | resultStr () |
int | resultInt () |
bool | called () |
void | setArgs (int new_argc, char **new_argv) |
void | main () override |
This method is called when this fiber is first run. | |
Public Member Functions inherited from gem5::Fiber | |
virtual | ~Fiber () |
void | run () |
Start executing the fiber represented by this object. | |
bool | finished () const |
Returns whether the "main" function of this fiber has finished. | |
bool | started () const |
Returns whether the "main" function of this fiber has started. | |
Fiber (size_t stack_size=DefaultStackSize) | |
Fiber (Fiber *link, size_t stack_size=DefaultStackSize) | |
Private Attributes | |
int | _argc = 0 |
char ** | _argv = NULL |
std::string | _resultStr |
int | _resultInt = 1 |
bool | _called = false |
Additional Inherited Members | |
Static Public Member Functions inherited from gem5::Fiber | |
static Fiber * | currentFiber () |
Get a pointer to the current running Fiber. | |
static Fiber * | primaryFiber () |
Get a pointer to the primary Fiber. | |
Static Public Attributes inherited from gem5::Fiber | |
static const size_t | DefaultStackSize = 0x50000 |
Protected Member Functions inherited from gem5::Fiber | |
void | setStarted () |
Definition at line 37 of file sc_main_fiber.hh.
|
inline |
Definition at line 48 of file sc_main_fiber.hh.
|
inline |
Definition at line 50 of file sc_main_fiber.hh.
References _argc.
|
inline |
Definition at line 51 of file sc_main_fiber.hh.
References _argv.
|
inline |
Definition at line 54 of file sc_main_fiber.hh.
References _called.
Referenced by sc_gem5::Scheduler::pause(), sc_gem5::Scheduler::stop(), and sc_gem5::Scheduler::throwUp().
|
overridevirtual |
This method is called when this fiber is first run.
Override it to give your fiber something to do. When main returns, the fiber will mark itself as finished and switch to its link fiber.
Implements gem5::Fiber.
Definition at line 48 of file sc_main_fiber.cc.
References _argc, _argv, _called, _resultInt, _resultStr, sc_gem5::Scheduler::clear(), fatal, sc_core::sc_report_handler::get_catch_actions(), sc_gem5::reportHandlerProc, sc_gem5::reportifyException(), sc_main(), and sc_gem5::scheduler.
|
inline |
Definition at line 53 of file sc_main_fiber.hh.
References _resultInt.
|
inline |
Definition at line 52 of file sc_main_fiber.hh.
References _resultStr.
|
inline |
Definition at line 57 of file sc_main_fiber.hh.
|
private |
Definition at line 40 of file sc_main_fiber.hh.
|
private |
Definition at line 41 of file sc_main_fiber.hh.
|
private |
Definition at line 45 of file sc_main_fiber.hh.
|
private |
Definition at line 43 of file sc_main_fiber.hh.
Referenced by main(), and resultInt().
|
private |
Definition at line 42 of file sc_main_fiber.hh.
Referenced by main(), and resultStr().