aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-06-28 09:11:59 +0200
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2023-06-28 10:53:57 +0100
commit99c82c479b26ce18e124b86d0dab9fd3bfa3ec4f (patch)
tree5b5c47edb95b35f5bbd6b7b1a0df996ebd7c691e /target
parent633c42834c7bbd528fdb0971c3d2f994a5137072 (diff)
downloadqemu-99c82c479b26ce18e124b86d0dab9fd3bfa3ec4f.zip
qemu-99c82c479b26ce18e124b86d0dab9fd3bfa3ec4f.tar.gz
qemu-99c82c479b26ce18e124b86d0dab9fd3bfa3ec4f.tar.bz2
target/sparc: Use DYNAMIC_PC_LOOKUP for conditional branches
When resolving JUMP_PC, we know this is for a plain 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-6-richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'target')
-rw-r--r--target/sparc/translate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index 75aa1a1..d7b569d 100644
--- a/target/sparc/translate.c
+++ b/target/sparc/translate.c
@@ -941,7 +941,7 @@ static void flush_cond(DisasContext *dc)
{
if (dc->npc == JUMP_PC) {
gen_generic_branch(dc);
- dc->npc = DYNAMIC_PC;
+ dc->npc = DYNAMIC_PC_LOOKUP;
}
}
@@ -951,7 +951,7 @@ static void save_npc(DisasContext *dc)
switch (dc->npc) {
case JUMP_PC:
gen_generic_branch(dc);
- dc->npc = DYNAMIC_PC;
+ dc->npc = DYNAMIC_PC_LOOKUP;
break;
case DYNAMIC_PC:
case DYNAMIC_PC_LOOKUP:
@@ -997,7 +997,7 @@ static void gen_mov_pc_npc(DisasContext *dc)
case JUMP_PC:
gen_generic_branch(dc);
tcg_gen_mov_tl(cpu_pc, cpu_npc);
- dc->pc = DYNAMIC_PC;
+ dc->pc = DYNAMIC_PC_LOOKUP;
break;
case DYNAMIC_PC:
case DYNAMIC_PC_LOOKUP: