diff options
author | Richard Henderson | 2021-06-21 02:05:35 +0200 |
---|---|---|
committer | Richard Henderson | 2021-07-09 18:42:28 +0200 |
commit | 70c6eb46d780a1ad1a53a4cfbb1052973271a62d (patch) | |
tree | 7c0218837a57a13ba1f7acdaab44a4a1f90ad6ba /target/xtensa | |
parent | target/tricore: Use tcg_gen_lookup_and_goto_ptr (diff) | |
download | qemu-70c6eb46d780a1ad1a53a4cfbb1052973271a62d.tar.gz qemu-70c6eb46d780a1ad1a53a4cfbb1052973271a62d.tar.xz qemu-70c6eb46d780a1ad1a53a4cfbb1052973271a62d.zip |
target/xtensa: Use translator_use_goto_tb
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/xtensa')
-rw-r--r-- | target/xtensa/translate.c | 6 |
1 files changed, 1 insertions, 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) |