int kvm_update_guest_debug(CPUState *env, unsigned long reinject_trap)

{

    struct kvm_set_guest_debug_data data;



    data.dbg.control = 0;

    if (env->singlestep_enabled)

        data.dbg.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP;



    kvm_arch_update_guest_debug(env, &data.dbg);

    data.dbg.control |= reinject_trap;

    data.env = env;



    on_vcpu(env, kvm_invoke_set_guest_debug, &data);

    return data.err;

}

int kvm_update_guest_debug(CPUState *env, unsigned long reinject_trap)

{

    struct kvm_set_guest_debug_data data;



    data.dbg.control = 0;

    if (env->singlestep_enabled)

        data.dbg.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP;



    kvm_arch_update_guest_debug(env, &data.dbg);

    data.dbg.control |= reinject_trap;

    data.env = env;



    on_vcpu(env, kvm_invoke_set_guest_debug, &data);

    return data.err;

}

    data.dbg.control = 0;     if (env->singlestep_enabled)         data.dbg.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP;     data.dbg.control |= reinject_trap;
int FUNC_0(CPUState *VAR_0, unsigned long VAR_1)

{

    struct kvm_set_guest_debug_data VAR_2;



    VAR_2.dbg.control = 0;

    if (VAR_0->singlestep_enabled)

        VAR_2.dbg.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP;



    kvm_arch_update_guest_debug(VAR_0, &VAR_2.dbg);

    VAR_2.dbg.control |= VAR_1;

    VAR_2.VAR_0 = VAR_0;



    on_vcpu(VAR_0, kvm_invoke_set_guest_debug, &VAR_2);

    return VAR_2.err;

}

int FUNC_0(CPUState *VAR_0, unsigned long VAR_1)
{ struct kvm_set_guest_debug_data VAR_2; VAR_2.dbg.control = 0; if (VAR_0->singlestep_enabled)
VAR_2.dbg.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP; kvm_arch_update_guest_debug(VAR_0, &VAR_2.dbg); VAR_2.dbg.control |= VAR_1; VAR_2.VAR_0 = VAR_0; on_vcpu(VAR_0, kvm_invoke_set_guest_debug, &VAR_2); return VAR_2.err; }