[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 26/26] target/xtensa: Use translator_use_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH 26/26] target/xtensa: Use translator_use_goto_tb |
Date: |
Sun, 20 Jun 2021 18:34:39 -0700 |
Cc: 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 22/26] target/sh4: Use translator_use_goto_tb, (continued)
- [PATCH 22/26] target/sh4: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 25/26] target/tricore: Use tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2021/06/20
- [PATCH 19/26] target/rx: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 18/26] target/riscv: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 15/26] target/nios2: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 20/26] target/s390x: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 23/26] target/sparc: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 26/26] target/xtensa: Use translator_use_goto_tb,
Richard Henderson <=
- [PATCH 24/26] target/tricore: Use translator_use_goto_tb, Richard Henderson, 2021/06/20