void cpu_single_step(CPUState *cpu, int enabled)

{

#if defined(TARGET_HAS_ICE)

    if (cpu->singlestep_enabled != enabled) {

        cpu->singlestep_enabled = enabled;

        if (kvm_enabled()) {

            kvm_update_guest_debug(cpu, 0);

        } else {

            /* must flush all the translated code to avoid inconsistencies */

            /* XXX: only flush what is necessary */

            CPUArchState *env = cpu->env_ptr;

            tb_flush(env);

        }

    }

#endif

}

void cpu_single_step(CPUState *cpu, int enabled)

{

#if defined(TARGET_HAS_ICE)

    if (cpu->singlestep_enabled != enabled) {

        cpu->singlestep_enabled = enabled;

        if (kvm_enabled()) {

            kvm_update_guest_debug(cpu, 0);

        } else {

            

            

            CPUArchState *env = cpu->env_ptr;

            tb_flush(env);

        }

    }

#endif

}

void FUNC_0(CPUState *VAR_0, int VAR_1)

{

#if defined(TARGET_HAS_ICE)

    if (VAR_0->singlestep_enabled != VAR_1) {

        VAR_0->singlestep_enabled = VAR_1;

        if (kvm_enabled()) {

            kvm_update_guest_debug(VAR_0, 0);

        } else {

            

            

            CPUArchState *env = VAR_0->env_ptr;

            tb_flush(env);

        }

    }

#endif

}

void FUNC_0(CPUState *VAR_0, int VAR_1)
{ #if defined(TARGET_HAS_ICE)
if (VAR_0->singlestep_enabled != VAR_1) { VAR_0->singlestep_enabled = VAR_1; if (kvm_enabled()) { kvm_update_guest_debug(VAR_0, 0); } else { CPUArchState *env = VAR_0->env_ptr; tb_flush(env); } } #endif
}