From 8ce8d4fe20cdb5e605fa46e47138eb73329c47cd Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sat, 3 Mar 2018 14:23:19 -0500 Subject: [PATCH] target/mips: optimize cross-page direct jumps in softmmu Backports commit d9a9acde64b862107933f9e9a01435e51bf8f91b 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 c5dfe0ce..0cc8fe65 100644 --- a/qemu/target/mips/translate.c +++ b/qemu/target/mips/translate.c @@ -4291,7 +4291,7 @@ static inline void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) 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); } }