smm_instrumentation_subscribe sparc_v8_ecc_fault_injection
API Reference Manual  /  4 Model-to-Model Interfaces  / 

sparc_v8

Description
SIM_INTERFACE(sparc_v8) {
        uint64 (*read_window_register)(conf_object_t *cpu, int window, int reg);

        void (*write_window_register)(conf_object_t *cpu,
                                      int window, int reg, uint64 value);
        void (*power_down)(conf_object_t *cpu);
};
#define SPARC_V8_INTERFACE "sparc_v8"

SPARC V8 specific functions.

This interface is implemented by SPARC V8 processors to provide various functionality that is specific for this class of processors.

The read_window_register and write_window_register functions can be used to access registers in any register window.

The register number when accessing windowed registers is 0 - 7 for accesses to the global registers, 8 - 15 for the out registers of the selected window, 16 - 23 for the local registers, and 24 - 31 for the in registers.

The power_down function is used to command the processor to enter power down mode. During power down mode, the processor will not execute any instructions, it will instead fast forward the execution to the next event. If the event is an external interrupt the power down mode is exited and execution resumed, in other cases the event will be handled and the processor will remain in power down mode and fast forward to the next event.

One use for the power_down function is for example to have an external device such as an memory mapped PMU force the processor into power down mode.

Execution Context
Cell Context for all methods.

smm_instrumentation_subscribe sparc_v8_ecc_fault_injection