SIM_clear_exception — clear pending exception
#include <simics/device-api.h> // in C
// always available in DML
sim_exception_t
SIM_clear_exception();
Clears the currently pending frontend exception and returns the value of it.
Returns the exception that was pending before the call, or SimExc_No_Exception.
Cell Context
SIM_describe_pseudo_exception — return pseudo exception description
#include <simics/device-api.h> // in C
// always available in DML
const char *
SIM_describe_pseudo_exception(exception_type_t ex);
import simics
simics.SIM_describe_pseudo_exception(...)
This function returns a descriptive string for the specified exception_type_t.
Exception description, or an error message if input is not a known pseudo-exception.
Global Context
SIM_get_pending_exception — get current pending exception
#include <simics/device-api.h> // in C
// always available in DML
sim_exception_t
SIM_get_pending_exception();
This function returns the exception type of the current pending exception, or SimExc_No_Exception if none available.
Cell Context
SIM_last_error — get error message from last frontend exception
#include <simics/device-api.h> // in C
// always available in DML
const char *
SIM_last_error();
import simics
simics.SIM_last_error(...)
Returns the error message associated with the most recently raised frontend exception, even if that exception has been cleared.
The returned string is only valid until the next use of the Simics API in the same thread.
Cell Context