summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Henderson2021-06-21 01:31:23 +0200
committerRichard Henderson2021-07-09 18:42:28 +0200
commit6e9cc373ec5871bfd8aca36e319ded67e48ca58f (patch)
treec21c1ed709525af81192b85de07fc2b509bb79dc
parenttarget/openrisc: Use translator_use_goto_tb (diff)
downloadqemu-6e9cc373ec5871bfd8aca36e319ded67e48ca58f.tar.gz
qemu-6e9cc373ec5871bfd8aca36e319ded67e48ca58f.tar.xz
qemu-6e9cc373ec5871bfd8aca36e319ded67e48ca58f.zip
target/ppc: Use translator_use_goto_tb
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--target/ppc/translate.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/target/ppc/translate.c b/target/ppc/translate.c
index 07d79acc08..0ad601793c 100644
--- a/target/ppc/translate.c
+++ b/target/ppc/translate.c
@@ -4301,15 +4301,7 @@ static inline void gen_update_cfar(DisasContext *ctx, target_ulong nip)
static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest)
{
- if (unlikely(ctx->singlestep_enabled)) {
- return false;
- }
-
-#ifndef CONFIG_USER_ONLY
- return (ctx->base.tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK);
-#else
- return true;
-#endif
+ return translator_use_goto_tb(&ctx->base, dest);
}
static void gen_lookup_and_goto_ptr(DisasContext *ctx)