[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/26] target/microblaze: Use translator_use_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH 12/26] target/microblaze: Use translator_use_goto_tb |
Date: |
Sun, 20 Jun 2021 18:34:25 -0700 |
Just use translator_use_goto_tb directly at the one call site,
rather than maintaining a local wrapper.
Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/microblaze/translate.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c
index c1b13f4c7d..b753f080e7 100644
--- a/target/microblaze/translate.c
+++ b/target/microblaze/translate.c
@@ -125,15 +125,6 @@ static void gen_raise_hw_excp(DisasContext *dc, uint32_t
esr_ec)
gen_raise_exception_sync(dc, EXCP_HW_EXCP);
}
-static inline bool use_goto_tb(DisasContext *dc, target_ulong dest)
-{
-#ifndef CONFIG_USER_ONLY
- return (dc->base.pc_first & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK);
-#else
- return true;
-#endif
-}
-
static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
{
if (dc->base.singlestep_enabled) {
@@ -141,7 +132,7 @@ static void gen_goto_tb(DisasContext *dc, int n,
target_ulong dest)
tcg_gen_movi_i32(cpu_pc, dest);
gen_helper_raise_exception(cpu_env, tmp);
tcg_temp_free_i32(tmp);
- } else if (use_goto_tb(dc, dest)) {
+ } else if (translator_use_goto_tb(&dc->base, dest)) {
tcg_gen_goto_tb(n);
tcg_gen_movi_i32(cpu_pc, dest);
tcg_gen_exit_tb(dc->base.tb, n);
--
2.25.1
- 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
- [PATCH 12/26] target/microblaze: Use translator_use_goto_tb,
Richard Henderson <=
- [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