]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-xtensa: don't emit extra tcg_gen_goto_tb
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 20 Sep 2012 22:59:50 +0000 (02:59 +0400)
committermalc <av1474@comtv.ru>
Thu, 20 Sep 2012 23:07:27 +0000 (03:07 +0400)
Unconditional gen_check_loop_end at the end of disas_xtensa_insn
can emit tcg_gen_goto_tb with slot id already used in the TB (e.g. when
TB ends at LEND with a branch).

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: malc <av1474@comtv.ru>
target-xtensa/translate.c

index 7a1c528fc827bbb9ceac50cd6def858d97f56692..b6643eb8183c26e6062aebb2b9f6ef8b84a1800c 100644 (file)
@@ -2520,7 +2520,9 @@ static void disas_xtensa_insn(DisasContext *dc)
         break;
     }
 
-    gen_check_loop_end(dc, 0);
+    if (dc->is_jmp == DISAS_NEXT) {
+        gen_check_loop_end(dc, 0);
+    }
     dc->pc = dc->next_pc;
 
     return;