[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 28/28] target/xtensa: Use translator_use_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH v3 28/28] target/xtensa: Use translator_use_goto_tb |
Date: |
Thu, 8 Jul 2021 09:40:50 -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 14028d307d..ac42f5efdc 100644
--- a/target/xtensa/translate.c
+++ b/target/xtensa/translate.c
@@ -406,11 +406,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 v3 20/28] target/riscv: Use translator_use_goto_tb, (continued)
- [PATCH v3 20/28] target/riscv: Use translator_use_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 14/28] target/microblaze: Use translator_use_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 19/28] target/ppc: Use translator_use_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 27/28] target/tricore: Use tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2021/07/08
- [PATCH v3 24/28] target/sh4: Use translator_use_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 16/28] target/mips: Fix missing else in gen_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 18/28] target/openrisc: Use translator_use_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 23/28] target/s390x: Remove use_exit_tb, Richard Henderson, 2021/07/08
- [PATCH v3 22/28] target/s390x: Use translator_use_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 21/28] target/rx: Use translator_use_goto_tb, Richard Henderson, 2021/07/08
- [PATCH v3 28/28] target/xtensa: Use translator_use_goto_tb,
Richard Henderson <=
- [PATCH v3 26/28] target/tricore: Use translator_use_goto_tb, Richard Henderson, 2021/07/08