[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/26] target/cris: Use translator_use_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH 08/26] target/cris: Use translator_use_goto_tb |
Date: |
Sun, 20 Jun 2021 18:34:21 -0700 |
The test for singlestepping is done in translator_use_goto_tb,
so we may elide it from cris_tr_tb_stop.
Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
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 3200819f32..33ad76c0a8 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -517,7 +517,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)
@@ -3275,8 +3275,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)
- && (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc))) {
+ if (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc)) {
TCGLabel *not_taken = gen_new_label();
tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, not_taken);
--
2.25.1
- [PATCH 02/26] target/alpha: Remove use_exit_tb, (continued)
- [PATCH 02/26] target/alpha: Remove use_exit_tb, Richard Henderson, 2021/06/20
- [PATCH 07/26] target/avr: Mark some helpers noreturn, Richard Henderson, 2021/06/20
- [PATCH 05/26] target/arm: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 03/26] target/alpha: Remove in_superpage, Richard Henderson, 2021/06/20
- [PATCH 06/26] target/avr: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 09/26] target/hppa: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 10/26] target/i386: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 08/26] target/cris: Use translator_use_goto_tb,
Richard Henderson <=
- [PATCH 11/26] target/m68k: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 12/26] target/microblaze: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 14/26] target/mips: Fix missing else in gen_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 13/26] target/mips: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 16/26] target/openrisc: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 17/26] target/ppc: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 21/26] target/s390x: Remove use_exit_tb, Richard Henderson, 2021/06/20