[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 28/28] target/xtensa: Use translator_use_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH v2 28/28] target/xtensa: Use translator_use_goto_tb |
Date: |
Wed, 30 Jun 2021 11:32:26 -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 v2 18/28] target/openrisc: Use translator_use_goto_tb, (continued)
- [PATCH v2 18/28] target/openrisc: Use translator_use_goto_tb, Richard Henderson, 2021/06/30
- [PATCH v2 22/28] target/s390x: Use translator_use_goto_tb, Richard Henderson, 2021/06/30
- [PATCH v2 23/28] target/s390x: Remove use_exit_tb, Richard Henderson, 2021/06/30
- [PATCH v2 26/28] target/tricore: Use translator_use_goto_tb, Richard Henderson, 2021/06/30
- [PATCH v2 24/28] target/sh4: Use translator_use_goto_tb, Richard Henderson, 2021/06/30
- [PATCH v2 20/28] target/riscv: Use translator_use_goto_tb, Richard Henderson, 2021/06/30
- [PATCH v2 21/28] target/rx: Use translator_use_goto_tb, Richard Henderson, 2021/06/30
- [PATCH v2 07/28] target/arm: Use translator_use_goto_tb for aarch32, Richard Henderson, 2021/06/30
- [PATCH v2 25/28] target/sparc: Use translator_use_goto_tb, Richard Henderson, 2021/06/30
- [PATCH v2 27/28] target/tricore: Use tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2021/06/30
- [PATCH v2 28/28] target/xtensa: Use translator_use_goto_tb,
Richard Henderson <=