[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/26] target/m68k: Use translator_use_goto_tb
From: |
Laurent Vivier |
Subject: |
Re: [PATCH 11/26] target/m68k: Use translator_use_goto_tb |
Date: |
Mon, 21 Jun 2021 09:35:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Le 21/06/2021 à 03:34, Richard Henderson a écrit :
> Just use translator_use_goto_tb directly at the one call site,
> rather than maintaining a local wrapper.
>
> Cc: Laurent Vivier <laurent@vivier.eu>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/m68k/translate.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> diff --git a/target/m68k/translate.c b/target/m68k/translate.c
> index f0c5bf9154..05b96fdda7 100644
> --- a/target/m68k/translate.c
> +++ b/target/m68k/translate.c
> @@ -1520,16 +1520,6 @@ static void gen_exit_tb(DisasContext *s)
> } \
> } while (0)
>
> -static inline bool use_goto_tb(DisasContext *s, uint32_t dest)
> -{
> -#ifndef CONFIG_USER_ONLY
> - return (s->base.pc_first & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK)
> - || (s->base.pc_next & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK);
> -#else
> - return true;
> -#endif
> -}
> -
> /* Generate a jump to an immediate address. */
> static void gen_jmp_tb(DisasContext *s, int n, uint32_t dest)
> {
> @@ -1537,7 +1527,7 @@ static void gen_jmp_tb(DisasContext *s, int n, uint32_t
> dest)
> update_cc_op(s);
> tcg_gen_movi_i32(QREG_PC, dest);
> gen_singlestep_exception(s);
> - } else if (use_goto_tb(s, dest)) {
> + } else if (translator_use_goto_tb(&s->base, dest)) {
> tcg_gen_goto_tb(n);
> tcg_gen_movi_i32(QREG_PC, dest);
> tcg_gen_exit_tb(s->base.tb, n);
>
Acked-by: Laurent Vivier <laurent@vivier.eu>
- Re: [PATCH 07/26] target/avr: Mark some helpers noreturn, (continued)
- [PATCH 05/26] target/arm: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 03/26] target/alpha: Remove in_superpage, Richard Henderson, 2021/06/20
- [PATCH 06/26] target/avr: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 09/26] target/hppa: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 10/26] target/i386: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 08/26] target/cris: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 11/26] target/m68k: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- Re: [PATCH 11/26] target/m68k: Use translator_use_goto_tb,
Laurent Vivier <=
- [PATCH 12/26] target/microblaze: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 14/26] target/mips: Fix missing else in gen_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 13/26] target/mips: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 16/26] target/openrisc: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 17/26] target/ppc: Use translator_use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH 21/26] target/s390x: Remove use_exit_tb, Richard Henderson, 2021/06/20
- [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