]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/sparc: Use tcg_gen_lookup_and_goto_ptr in gen_goto_tb
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 28 Jun 2023 07:11:55 +0000 (09:11 +0200)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 28 Jun 2023 09:53:02 +0000 (10:53 +0100)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230628071202.230991-2-richard.henderson@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
target/sparc/translate.c

index bad2ec90a0dc2bcadc6a80c65ea4b4a5cb73a10b..28d4cdb8b41691a339798eda8f626317e87dcc80 100644 (file)
@@ -318,10 +318,10 @@ static void gen_goto_tb(DisasContext *s, int tb_num,
         tcg_gen_movi_tl(cpu_npc, npc);
         tcg_gen_exit_tb(s->base.tb, tb_num);
     } else {
-        /* jump to another page: currently not optimized */
+        /* jump to another page: we can use an indirect jump */
         tcg_gen_movi_tl(cpu_pc, pc);
         tcg_gen_movi_tl(cpu_npc, npc);
-        tcg_gen_exit_tb(NULL, 0);
+        tcg_gen_lookup_and_goto_ptr();
     }
 }