]> Git Repo - qemu.git/commitdiff
target-xtensa: don't emit extra tcg_gen_goto_tb
authorMax Filippov <[email protected]>
Thu, 20 Sep 2012 22:59:50 +0000 (02:59 +0400)
committermalc <[email protected]>
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 <[email protected]>
Cc: qemu-stable <[email protected]>
Signed-off-by: malc <[email protected]>
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;
This page took 0.022333 seconds and 4 git commands to generate.