target/aarch64: optimize cross-page direct jumps in softmmu
authorEmilio G. Cota <cota@braap.org>
Fri, 28 Apr 2017 18:57:41 +0000 (14:57 -0400)
committerRichard Henderson <rth@twiddle.net>
Mon, 5 Jun 2017 16:25:42 +0000 (09:25 -0700)
Perf numbers in next commit's log.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/arm/translate-a64.c

index a82ab49c945181de26641ede2381f75edefa6bc7..ab61d96099fa8ecd34750d481c9a21fbdfc53309 100644 (file)
@@ -379,7 +379,7 @@ static inline void gen_goto_tb(DisasContext *s, int n, uint64_t dest)
         } else if (s->singlestep_enabled) {
             gen_exception_internal(EXCP_DEBUG);
         } else {
-            tcg_gen_exit_tb(0);
+            tcg_gen_lookup_and_goto_ptr(cpu_pc);
             s->is_jmp = DISAS_TB_JUMP;
         }
     }