]> git.proxmox.com Git - qemu.git/blobdiff - target-ppc/translate.c
Use sys-queue.h for break/watchpoint managment (Jan Kiszka)
[qemu.git] / target-ppc / translate.c
index 04d3fa0c65fd46c17a06f5b7648b107f9d767108..69c67712a3eb7051663218cf1a2a8e9a2872d8b3 100644 (file)
@@ -7562,8 +7562,8 @@ static always_inline void gen_intermediate_code_internal (CPUState *env,
     gen_icount_start();
     /* Set env in case of segfault during code fetch */
     while (ctx.exception == POWERPC_EXCP_NONE && gen_opc_ptr < gen_opc_end) {
-        if (unlikely(env->breakpoints)) {
-            for (bp = env->breakpoints; bp != NULL; bp = bp->next) {
+        if (unlikely(!TAILQ_EMPTY(&env->breakpoints))) {
+            TAILQ_FOREACH(bp, &env->breakpoints, entry) {
                 if (bp->pc == ctx.nip) {
                     gen_update_nip(&ctx, ctx.nip);
                     gen_helper_raise_debug();