aboutsummaryrefslogtreecommitdiff
path: root/target/mips/translate.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2017-04-30 16:52:54 +0200
committerRichard Henderson <rth@twiddle.net>2017-06-05 09:25:42 -0700
commite350d8ca3ac7e31c6af71a4ab74d2442dfefc697 (patch)
tree671eb0a65a0bc20345c62009bb90722bd5209e3a /target/mips/translate.c
parentd9a9acde64b862107933f9e9a01435e51bf8f91b (diff)
downloadqemu-e350d8ca3ac7e31c6af71a4ab74d2442dfefc697.zip
qemu-e350d8ca3ac7e31c6af71a4ab74d2442dfefc697.tar.gz
qemu-e350d8ca3ac7e31c6af71a4ab74d2442dfefc697.tar.bz2
target/mips: optimize indirect branches
Cc: Yongbok Kim <yongbok.kim@imgtec.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Message-Id: <20170430145254.25616-4-aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/mips/translate.c')
-rw-r--r--target/mips/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c
index 1a7ac07..559f8fe 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -10725,7 +10725,7 @@ static void gen_branch(DisasContext *ctx, int insn_bytes)
save_cpu_state(ctx, 0);
gen_helper_raise_exception_debug(cpu_env);
}
- tcg_gen_exit_tb(0);
+ tcg_gen_lookup_and_goto_ptr(cpu_PC);
break;
default:
fprintf(stderr, "unknown branch 0x%x\n", proc_hflags);