VIRTUTECH CONFIDENTIAL Previous - Up - Next
Core_Control_Register_Write
- Provided By
-
Simics Core
- Callback Type
-
void (*)(lang_void *callback_data,
conf_object_t *trigger_obj,
integer_t register_number, integer_t value);
- Index
-
register_number
- Description
-
Called when a control register is written. Note that value is not (necessarily) the final contents in the register.
For x86 processors, this hap is triggered by CLTS, LMSW, and MOV. Page fault updates of CR2 should be caught with the Core_Exception hap. Note that if the callback routine breaks to the frontend by raising an exception, the instruction will be replayed possibly causing repeated memory operations.
For PowerPC processors, this hap is triggered by the MTSPR instruction (i.e., only explicit writes).
VIRTUTECH CONFIDENTIAL Previous - Up - Next