Type Alias simics_api_sys::bindings::cpu_instruction_decoder_cb_t

source ·
pub type cpu_instruction_decoder_cb_t = Option<unsafe extern "C" fn(obj: *mut conf_object_t, cpu: *mut conf_object_t, decoder_handle: *mut decoder_handle_t, iq_handle: *mut instruction_handle_t, user_data: *mut lang_void) -> c_int>;
Expand description
cpu_instruction_decoder_cb_t cpu_instruction_decoder_cb_t cpu_instruction_decoder_cb_t

Instrumentation callback function registered through the cpu_instrumentation_subscribe interface’s register_instruction_decoder_cb() member function.

This callback will be called when an instruction is about to be cached in the processor model (this is not the same as being in the processor’s real hardware instruction cache). The cpu is the processor which executed an instruction. The decoder_handle is an opaque handle associated with the instruction being executed and used in the cpu_instruction_decoder interface. The iq_handle is used with the cpu_instruction_query interface to get more information on the instruction. The user_data is the user data associated with the callback.

Aliased Type§

enum cpu_instruction_decoder_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: *mut cpu_replace_info, _: *mut cpu_instrumentation_info, _: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: *mut cpu_replace_info, _: *mut cpu_instrumentation_info, _: *mut c_void) -> i32)

Some value of type T.