int kvm_arch_remove_hw_breakpoint(target_ulong addr,

                                  target_ulong len, int type)

{

    int n;



    n = find_hw_breakpoint(addr, (type == GDB_BREAKPOINT_HW) ? 1 : len, type);

    if (n < 0)

        return -ENOENT;



    nb_hw_breakpoint--;

    hw_breakpoint[n] = hw_breakpoint[nb_hw_breakpoint];



    return 0;

}

int kvm_arch_remove_hw_breakpoint(target_ulong addr,

                                  target_ulong len, int type)

{

    int n;



    n = find_hw_breakpoint(addr, (type == GDB_BREAKPOINT_HW) ? 1 : len, type);

    if (n < 0)

        return -ENOENT;



    nb_hw_breakpoint--;

    hw_breakpoint[n] = hw_breakpoint[nb_hw_breakpoint];



    return 0;

}

int FUNC_0(target_ulong VAR_0,

                                  target_ulong VAR_1, int VAR_2)

{

    int VAR_3;



    VAR_3 = find_hw_breakpoint(VAR_0, (VAR_2 == GDB_BREAKPOINT_HW) ? 1 : VAR_1, VAR_2);

    if (VAR_3 < 0)

        return -ENOENT;



    nb_hw_breakpoint--;

    hw_breakpoint[VAR_3] = hw_breakpoint[nb_hw_breakpoint];



    return 0;

}

int FUNC_0(target_ulong VAR_0,
target_ulong VAR_1, int VAR_2)
{ int VAR_3; VAR_3 = find_hw_breakpoint(VAR_0, (VAR_2 == GDB_BREAKPOINT_HW) ? 1 : VAR_1, VAR_2); if (VAR_3 < 0)
return -ENOENT; nb_hw_breakpoint--; hw_breakpoint[VAR_3] = hw_breakpoint[nb_hw_breakpoint]; return 0; }