[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/8] target/sparc: Use DYNAMIC_PC_LOOKUP for conditional branc
From: |
Richard Henderson |
Subject: |
[PATCH v2 5/8] target/sparc: Use DYNAMIC_PC_LOOKUP for conditional branches |
Date: |
Wed, 21 Jun 2023 20:06:04 +0200 |
When resolving JUMP_PC, we know this is for a plain branch
with no other side effects.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/sparc/translate.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index d12f2ac423..bd3feed72e 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:
--
2.34.1
- [PATCH v2 0/8] target/sparc: Use tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2023/06/21
- [PATCH v2 1/8] target/sparc: Use tcg_gen_lookup_and_goto_ptr in gen_goto_tb, Richard Henderson, 2023/06/21
- [PATCH v2 4/8] target/sparc: Introduce DYNAMIC_PC_LOOKUP, Richard Henderson, 2023/06/21
- [PATCH v2 5/8] target/sparc: Use DYNAMIC_PC_LOOKUP for conditional branches,
Richard Henderson <=
- [PATCH v2 3/8] target/sparc: Drop inline markers from translate.c, Richard Henderson, 2023/06/21
- [PATCH v2 6/8] target/sparc: Use DYNAMIC_PC_LOOKUP for JMPL, Richard Henderson, 2023/06/21
- [PATCH v2 8/8] target/sparc: Use tcg_gen_lookup_and_goto_ptr for v9 WRASI, Richard Henderson, 2023/06/21
- [PATCH v2 2/8] target/sparc: Fix npc comparison in sparc_tr_insn_start, Richard Henderson, 2023/06/21