Previous - Up - Next

SIM_instruction_set_stop_phase()

NAME
SIM_instruction_set_stop_phase — set breakpoint on instruction phase

SYNOPSIS
void
SIM_instruction_set_stop_phase(conf_object_t *NOTNULL cpu, 
                               instruction_phase_t phase, 
                               int on);

DESCRIPTION
This function is used to instruct Simics on which instruction phases SIM_instruction_proceed should stop on. The defined phases are currently:

typedef enum instruction_phase {
        Sim_Phase_Initiated,
        Sim_Phase_Fetched,
        Sim_Phase_Decoded,
        Sim_Phase_Executed,
        Sim_Phase_Retired,
        Sim_Phase_Committed,
        Sim_Phases
} instruction_phase_t;

Thus SIM_instruction_set_stop_phase(cpu, Sim_Phase_Executed, 1) will cause every call to SIM_instruction_proceed(cpu, ii) to advance instruction ii to the point where its semantics has been executed.

Previous - Up - Next