]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/sparc: Use DYNAMIC_PC_LOOKUP for JMPL
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 28 Jun 2023 07:12:00 +0000 (09:12 +0200)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 28 Jun 2023 09:53:57 +0000 (10:53 +0100)
This is for a plain indirect branch with no other side effects.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230628071202.230991-7-richard.henderson@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
target/sparc/translate.c

index d7b569d910cc036af0f4f3a7a7319dafdc1e6693..17afe98523f7f6caa431fb69c1f712c496d7f569 100644 (file)
@@ -5058,7 +5058,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
                         gen_check_align(cpu_tmp0, 3);
                         gen_address_mask(dc, cpu_tmp0);
                         tcg_gen_mov_tl(cpu_npc, cpu_tmp0);
-                        dc->npc = DYNAMIC_PC;
+                        dc->npc = DYNAMIC_PC_LOOKUP;
                     }
                     goto jmp_insn;
 #if !defined(CONFIG_USER_ONLY) && !defined(TARGET_SPARC64)