cpu_cached_stream cpu_instruction_decoder
API Reference Manual  /  5 Model-to-Simulator Interfaces  / 

cpu_exception_query

Description
The cpu_exception_query interface is used to query information about an exception for the a generic cpu architecture and should be used from a cpu_exception_cb_t callback.

SIM_INTERFACE(cpu_exception_query) {
        int (*exception_number)(conf_object_t *cpu, exception_handle_t *handle);
        logical_address_t (*fault_pc)(conf_object_t *cpu,
                                      exception_handle_t *handle);
};
#define CPU_EXCEPTION_QUERY_INTERFACE "cpu_exception_query"

exception_number is used to get the vector for the exception.

Execution Context
Threaded Context for all methods, but must be called from a callback receiving a handle of type exception_handle_t.

cpu_cached_stream cpu_instruction_decoder