Skip to content

Commit

Permalink
target-xtensa: don't emit extra tcg_gen_goto_tb
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
jcmvbkbc authored and mdroth committed Oct 9, 2012
1 parent 44219e7 commit cc10061
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion target-xtensa/translate.c
Expand Up @@ -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;
Expand Down

0 comments on commit cc10061

Please sign in to comment.