ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
#include <Stressor.h>
Static Public Member Functions | |
static bool | loadXML (const std::string &file, const int coreID=0) |
extracts faults out of the given xml file. More... | |
static bool | addFault (const Fault &f) |
adds a fault to a static map that can be accessed by static std::map<int32_t,Fault> & faults(). More... | |
static bool | firedTrigger (const Trigger &firedTrigger, int32_t fault_id, Injector *injector, uint64_t time_ps) |
Checks if the given trigger is valid and calls applyAction. More... | |
static void | clear () |
clears the fault map. More... | |
Definition at line 68 of file Stressor.h.
adds a fault to a static map that can be accessed by static std::map<int32_t,Fault> & faults().
f | the fault for adding to the map. |
TODO signal error and roll back
Definition at line 138 of file Stressor.cpp.
References etiss::fault::Injector::addTrigger(), etiss::ERROR, etiss::fault::faults(), etiss::fault::Fault::id_, etiss::INFO, etiss::log(), etiss::fault::Fault::toString(), and etiss::fault::Fault::triggers.
Referenced by firedTrigger(), and loadXML().
|
static |
clears the fault map.
Definition at line 274 of file Stressor.cpp.
References etiss::fault::faults().
Referenced by etiss::shutdown().
|
static |
Checks if the given trigger is valid and calls applyAction.
Is called by a VirtualStruct e.g. OR1KVCPU::vcoreState. The VirtualStruct inherits the Injector so it can call Injector::cycleAccurateCallback, which calls this function
firedTrigger | the Trigger which was called. |
fault_id | the id of the fault to which the trigger corresponds. |
injector | injector which called this function. |
time_ps | cpu time. |
TODO for time relative triggers resolve time must be called!
TODO: when returning true here. the next action will not be applied!
Definition at line 198 of file Stressor.cpp.
References addFault(), etiss::ERROR, etiss::fault::faults(), etiss::fault::Action::INJECTION, etiss::log(), etiss::VERBOSE, and etiss::WARNING.
Referenced by etiss::fault::Injector::cycleAccurateCallback().
extracts faults out of the given xml file.
file | the xmlfile with fault triggers. |
Definition at line 80 of file Stressor.cpp.
References addFault(), etiss::fault::coreIDActuallXML, etiss::ERROR, etiss::fault::faults(), etiss::INFO, and etiss::log().
Referenced by etiss_initialize().