[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 33/41] target/xtensa: Use translator_use_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH 33/41] target/xtensa: Use translator_use_goto_tb |
Date: |
Sat, 10 Jul 2021 08:31:35 -0700 |
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/xtensa/translate.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c
index d5da35f4fc..7094cfcf1d 100644
--- a/target/xtensa/translate.c
+++ b/target/xtensa/translate.c
@@ -405,11 +405,7 @@ static void gen_jump(DisasContext *dc, TCGv dest)
static int adjust_jump_slot(DisasContext *dc, uint32_t dest, int slot)
{
- if (((dc->base.pc_first ^ dest) & TARGET_PAGE_MASK) != 0) {
- return -1;
- } else {
- return slot;
- }
+ return translator_use_goto_tb(&dc->base, dest) ? slot : -1;
}
static void gen_jumpi(DisasContext *dc, uint32_t dest, int slot)
--
2.25.1
- [PATCH 21/41] target/mips: Fix missing else in gen_goto_tb, (continued)
- [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
- [PATCH 26/41] target/rx: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 31/41] target/tricore: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 33/41] target/xtensa: Use translator_use_goto_tb,
Richard Henderson <=
- [PATCH 28/41] target/s390x: Remove use_exit_tb, Richard Henderson, 2021/07/10
- [PATCH 30/41] target/sparc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 34/41] tcg: Fix prologue disassembly, Richard Henderson, 2021/07/10
- [PATCH 35/41] target/i386: Use cpu_breakpoint_test in breakpoint_handler, Richard Henderson, 2021/07/10
- [PATCH 32/41] target/tricore: Use tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2021/07/10
- [PATCH 36/41] accel/tcg: Move helper_lookup_tb_ptr to cpu-exec.c, Richard Henderson, 2021/07/10
- [PATCH 37/41] accel/tcg: Move tb_lookup to cpu-exec.c, Richard Henderson, 2021/07/10
- [PATCH 39/41] accel/tcg: Log tb->cflags with -d exec, Richard Henderson, 2021/07/10
- [PATCH 38/41] accel/tcg: Split out log_cpu_exec, Richard Henderson, 2021/07/10
- [PATCH 40/41] tcg: Remove TCG_TARGET_HAS_goto_ptr, Richard Henderson, 2021/07/10