SIM_stall_count — get number of cycles a processor has been stalled
#include <simics/device-api.h> // in C
// always available in DML
cycles_t
SIM_stall_count(conf_object_t *NOTNULL obj);
import simics
simics.SIM_stall_count(...)
SIM_stall_count returns the total number of cycles the processor associated to obj has been stalled.
Returns the total number of cycles the processor associated with obj has been stalled.
Cell Context
SIM_stall_cycle, SIM_stall — stall execution a specified number of cycles
#include <simics/device-api.h> // in C
// always available in DML
void
SIM_stall_cycle(conf_object_t *NOTNULL obj, cycles_t cycles);
void
SIM_stall(conf_object_t *NOTNULL obj, double seconds);
import simics
simics.SIM_stall_cycle(...)
simics.SIM_stall(...)
SIM_stall_cycle and SIM_stall set the stall duration of the processor obj. The stall duration is given in clock cycles or seconds and is how long obj will stall before resuming its normal activity. If obj was already stalling, the time remaining is changed. A zero stall duration is a request to cease stalling immediately.
The specified duration is interpreted as relative the local time of obj.
obj must implement the stall and cycle interfaces.
Cell Context
SimExc_General Thrown if cycles or seconds is negative.
SIM_stalled_until — query how many cycles that remains of stall
#include <simics/device-api.h> // in C
// always available in DML
cycles_t
SIM_stalled_until(conf_object_t *NOTNULL obj);
import simics
simics.SIM_stalled_until(...)
SIM_stalled_until returns how many more cycles the processor will stall before the associated processor starts to execute instructions again.
Cell Context