int kvm_arch_remove_sw_breakpoint(CPUState *cs, struct kvm_sw_breakpoint *bp)

{

    uint8_t t[sizeof(diag_501)];



    if (cpu_memory_rw_debug(cs, bp->pc, t, sizeof(diag_501), 0)) {

        return -EINVAL;

    } else if (memcmp(t, diag_501, sizeof(diag_501))) {

        return -EINVAL;

    } else if (cpu_memory_rw_debug(cs, bp->pc, (uint8_t *)&bp->saved_insn,

                                   sizeof(diag_501), 1)) {

        return -EINVAL;

    }



    return 0;

}

int kvm_arch_remove_sw_breakpoint(CPUState *cs, struct kvm_sw_breakpoint *bp)

{

    uint8_t t[sizeof(diag_501)];



    if (cpu_memory_rw_debug(cs, bp->pc, t, sizeof(diag_501), 0)) {

        return -EINVAL;

    } else if (memcmp(t, diag_501, sizeof(diag_501))) {

        return -EINVAL;

    } else if (cpu_memory_rw_debug(cs, bp->pc, (uint8_t *)&bp->saved_insn,

                                   sizeof(diag_501), 1)) {

        return -EINVAL;

    }



    return 0;

}

    uint8_t t[sizeof(diag_501)];     if (cpu_memory_rw_debug(cs, bp->pc, t, sizeof(diag_501), 0)) {     } else if (memcmp(t, diag_501, sizeof(diag_501))) {                                    sizeof(diag_501), 1)) {
int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1)

{

    uint8_t t[sizeof(diag_501)];



    if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, t, sizeof(diag_501), 0)) {

        return -EINVAL;

    } else if (memcmp(t, diag_501, sizeof(diag_501))) {

        return -EINVAL;

    } else if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_1->saved_insn,

                                   sizeof(diag_501), 1)) {

        return -EINVAL;

    }



    return 0;

}

int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1)
{ uint8_t t[sizeof(diag_501)]; if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, t, sizeof(diag_501), 0)) { return -EINVAL; } else if (memcmp(t, diag_501, sizeof(diag_501))) { return -EINVAL; } else if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_1->saved_insn, sizeof(diag_501), 1)) { return -EINVAL; } return 0; }