VIRTUTECH CONFIDENTIAL Previous - Up - Next
Core_Mode_Change
- Provided By
-
Simics Core
- Callback Type
-
void (*)(lang_void *callback_data,
conf_object_t *trigger_obj, integer_t old_mode,
integer_t new_mode);
- 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 IA-64 processors, the modes are privilege levels (0-3).
For Alpha processors, the modes are Alpha processor modes (0-3), 0 being Kernel mode and 3 User mode.
For other processors, the modes are Sim_CPU_Mode_User or Sim_CPU_Mode_Supervisor. The UltraSPARC T1 processor also has the Sim_CPU_Mode_Hypervisor mode.
VIRTUTECH CONFIDENTIAL Previous - Up - Next