x86_exception x86_instruction_query
API Reference Manual  /  4 Model-to-Model Interfaces  / 

x86_exception_query

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

SIM_INTERFACE(x86_exception_query) {
        uint8 (*vector)(
                conf_object_t *cpu, exception_handle_t *handle);
        x86_exception_source_t (*source)(
                conf_object_t *cpu, exception_handle_t *handle);
        uint32 (*error_code)(
                conf_object_t *cpu, exception_handle_t *handle);
};
#define X86_EXCEPTION_QUERY_INTERFACE "x86_exception_query"        

The vector method is used to get the exception vector. The source method is used to get the source of the exception and the error_code method is used to get the error code of the exception.

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

x86_exception x86_instruction_query