Core_Continuation Core_Control_Register_Write
API Reference Manual  /  12 Haps  / 

Core_Control_Register_Read

Description
Triggered when a control register is read. The hap is called before the read is performed; thus no registers have been modified.

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 x86 processors, this hap is triggered when a control register is read using a mov or smsw instruction (i.e. only explicit reads). Also the hap is triggered when MSRs are read with rdmsr, rdtsc or rdtscp instructions.

For PowerPC processors, this hap is triggered by the mfspr, mfmsr mfsr and mfsrin instructions (i.e. only explicit reads).

Callback Type
void (*)(lang_void *callback_data, 
         conf_object_t *trigger_obj, int64 register_number);

Index
register_number

Core_Continuation Core_Control_Register_Write