[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/41] target/cris: Use translator_use_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH 15/41] target/cris: Use translator_use_goto_tb |
Date: |
Sat, 10 Jul 2021 08:31:17 -0700 |
The test for singlestepping is done in translator_use_goto_tb,
so we may elide it from cris_tr_tb_stop.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/cris/translate.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/target/cris/translate.c b/target/cris/translate.c
index a6796c83b9..9258c13e9f 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -481,7 +481,7 @@ static void t_gen_swapr(TCGv d, TCGv s)
static bool use_goto_tb(DisasContext *dc, target_ulong dest)
{
- return ((dest ^ dc->base.pc_first) & TARGET_PAGE_MASK) == 0;
+ return translator_use_goto_tb(&dc->base, dest);
}
static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
@@ -3234,8 +3234,7 @@ static void cris_tr_tb_stop(DisasContextBase *dcbase,
CPUState *cpu)
* Use a conditional branch if either taken or not-taken path
* can use goto_tb. If neither can, then treat it as indirect.
*/
- if (likely(!dc->base.singlestep_enabled)
- && likely(!dc->cpustate_changed)
+ if (likely(!dc->cpustate_changed)
&& (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc))) {
TCGLabel *not_taken = gen_new_label();
--
2.25.1
- [PATCH 07/41] target/alpha: Remove use_exit_tb, (continued)
- [PATCH 07/41] target/alpha: Remove use_exit_tb, Richard Henderson, 2021/07/10
- [PATCH 08/41] target/alpha: Remove in_superpage, Richard Henderson, 2021/07/10
- [PATCH 09/41] target/alpha: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 10/41] target/arm: Use DISAS_TOO_MANY for ISB and SB, Richard Henderson, 2021/07/10
- [PATCH 11/41] target/arm: Use translator_use_goto_tb for aarch64, Richard Henderson, 2021/07/10
- [PATCH 12/41] target/arm: Use translator_use_goto_tb for aarch32, Richard Henderson, 2021/07/10
- [PATCH 14/41] target/avr: Mark some helpers noreturn, Richard Henderson, 2021/07/10
- [PATCH 18/41] target/m68k: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 13/41] target/avr: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 17/41] target/i386: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 15/41] target/cris: Use translator_use_goto_tb,
Richard Henderson <=
- [PATCH 16/41] target/hppa: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 20/41] target/mips: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 21/41] target/mips: Fix missing else in gen_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 19/41] target/microblaze: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 22/41] target/nios2: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 23/41] target/openrisc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 24/41] target/ppc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 27/41] target/s390x: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 25/41] target/riscv: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 29/41] target/sh4: Use translator_use_goto_tb, Richard Henderson, 2021/07/10