From: Max Filippov Date: Thu, 20 Sep 2012 22:59:50 +0000 (+0400) Subject: target-xtensa: don't emit extra tcg_gen_goto_tb X-Git-Tag: v1.2.1~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc10061717877fc65b5c734c43c55f471913ce92;p=thirdparty%2Fqemu.git target-xtensa: don't emit extra tcg_gen_goto_tb 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 Cc: qemu-stable Signed-off-by: malc Signed-off-by: Michael Roth --- diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 7a1c528fc82..b6643eb8183 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -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;