int kvm_arch_insert_sw_breakpoint(CPUState *env, struct kvm_sw_breakpoint *bp)

{

    static const uint8_t int3 = 0xcc;



    if (cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&bp->saved_insn, 1, 0) ||

        cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&int3, 1, 1))

        return -EINVAL;

    return 0;

}

int kvm_arch_insert_sw_breakpoint(CPUState *env, struct kvm_sw_breakpoint *bp)

{

    static const uint8_t int3 = 0xcc;



    if (cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&bp->saved_insn, 1, 0) ||

        cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&int3, 1, 1))

        return -EINVAL;

    return 0;

}

int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1)

{

    static const uint8_t VAR_2 = 0xcc;



    if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_1->saved_insn, 1, 0) ||

        cpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_2, 1, 1))

        return -EINVAL;

    return 0;

}

int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1)
{ static const uint8_t VAR_2 = 0xcc; if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_1->saved_insn, 1, 0) ||
cpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_2, 1, 1))
return -EINVAL; return 0; }