target/mips: optimize cross-page direct jumps in softmmu
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 30 Apr 2017 14:52:53 +0000 (16:52 +0200)
committerRichard Henderson <rth@twiddle.net>
Mon, 5 Jun 2017 16:25:42 +0000 (09:25 -0700)
Cc: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Message-Id: <20170430145254.25616-3-aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/mips/translate.c

index 3022f349cb2a06e428deb5d5dd6e90810c7c0ced..1a7ac07c678ac9f75de12854ef2c97228a9740a7 100644 (file)
@@ -4233,7 +4233,7 @@ static inline void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
             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);
     }
 }