Core_Memory_Space_Map_Changed Core_Module_Loaded
API Reference Manual  /  12 Haps  / 

Core_Mode_Change

Description
Triggered when a processor changes privilege mode for whatever reason; usually an exception or return from an exception. The hap occurs after the processor has changed mode but before any instructions have been executed in the new mode.

For x86 processors, the modes are Sim_CPU_Mode_User for CPL 3, and Sim_CPU_Mode_Supervisor for CPL 0-2.

For other processors, the modes are Sim_CPU_Mode_User or Sim_CPU_Mode_Supervisor. Some processors also has the Sim_CPU_Mode_Hypervisor mode.

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

Core_Memory_Space_Map_Changed Core_Module_Loaded