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
Instrumentation callback function registered through the
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
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§
None
No value.
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
.