int cpu_breakpoint_insert(CPUState *cpu, vaddr pc, int flags,

                          CPUBreakpoint **breakpoint)

{

#if defined(TARGET_HAS_ICE)

    CPUBreakpoint *bp;



    bp = g_malloc(sizeof(*bp));



    bp->pc = pc;

    bp->flags = flags;



    /* keep all GDB-injected breakpoints in front */

    if (flags & BP_GDB) {

        QTAILQ_INSERT_HEAD(&cpu->breakpoints, bp, entry);

    } else {

        QTAILQ_INSERT_TAIL(&cpu->breakpoints, bp, entry);

    }



    breakpoint_invalidate(cpu, pc);



    if (breakpoint) {

        *breakpoint = bp;

    }

    return 0;

#else

    return -ENOSYS;

#endif

}

int cpu_breakpoint_insert(CPUState *cpu, vaddr pc, int flags,

                          CPUBreakpoint **breakpoint)

{

#if defined(TARGET_HAS_ICE)

    CPUBreakpoint *bp;



    bp = g_malloc(sizeof(*bp));



    bp->pc = pc;

    bp->flags = flags;



    

    if (flags & BP_GDB) {

        QTAILQ_INSERT_HEAD(&cpu->breakpoints, bp, entry);

    } else {

        QTAILQ_INSERT_TAIL(&cpu->breakpoints, bp, entry);

    }



    breakpoint_invalidate(cpu, pc);



    if (breakpoint) {

        *breakpoint = bp;

    }

    return 0;

#else

    return -ENOSYS;

#endif

}

int FUNC_0(CPUState *VAR_0, vaddr VAR_1, int VAR_2,

                          CPUBreakpoint **VAR_3)

{

#if defined(TARGET_HAS_ICE)

    CPUBreakpoint *bp;



    bp = g_malloc(sizeof(*bp));



    bp->VAR_1 = VAR_1;

    bp->VAR_2 = VAR_2;



    

    if (VAR_2 & BP_GDB) {

        QTAILQ_INSERT_HEAD(&VAR_0->breakpoints, bp, entry);

    } else {

        QTAILQ_INSERT_TAIL(&VAR_0->breakpoints, bp, entry);

    }



    breakpoint_invalidate(VAR_0, VAR_1);



    if (VAR_3) {

        *VAR_3 = bp;

    }

    return 0;

#else

    return -ENOSYS;

#endif

}

int FUNC_0(CPUState *VAR_0, vaddr VAR_1, int VAR_2,
CPUBreakpoint **VAR_3)
{ #if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp; bp = g_malloc(sizeof(*bp)); bp->VAR_1 = VAR_1; bp->VAR_2 = VAR_2; if (VAR_2 & BP_GDB) { QTAILQ_INSERT_HEAD(&VAR_0->breakpoints, bp, entry); } else { QTAILQ_INSERT_TAIL(&VAR_0->breakpoints, bp, entry); } breakpoint_invalidate(VAR_0, VAR_1); if (VAR_3) { *VAR_3 = bp; } return 0; #else
return -ENOSYS; #endif
}