From 2c49a6b2f6f7b16195a4524e7f26bd6d77cb04a7 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sat, 3 Mar 2018 14:23:56 -0500 Subject: [PATCH] target/mips: optimize indirect branches Backports commit e350d8ca3ac7e31c6af71a4ab74d2442dfefc697 from qemu --- qemu/target/mips/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target/mips/translate.c b/qemu/target/mips/translate.c index 0cc8fe65..e56940a8 100644 --- a/qemu/target/mips/translate.c +++ b/qemu/target/mips/translate.c @@ -10810,7 +10810,7 @@ static void gen_branch(DisasContext *ctx, int insn_bytes) save_cpu_state(ctx, 0); gen_helper_raise_exception_debug(tcg_ctx, tcg_ctx->cpu_env); } - tcg_gen_exit_tb(tcg_ctx, 0); + tcg_gen_lookup_and_goto_ptr(tcg_ctx, tcg_ctx->cpu_PC); break; default: fprintf(stderr, "unknown branch 0x%x\n", proc_hflags);