target/sh4: Use translator_use_goto_tb
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
95cc1cb39e
commit
3f1e209845
@ -224,17 +224,12 @@ static inline bool use_exit_tb(DisasContext *ctx)
|
|||||||
return (ctx->tbflags & GUSA_EXCLUSIVE) != 0;
|
return (ctx->tbflags & GUSA_EXCLUSIVE) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest)
|
static bool use_goto_tb(DisasContext *ctx, target_ulong dest)
|
||||||
{
|
{
|
||||||
/* Use a direct jump if in same page and singlestep not enabled */
|
if (use_exit_tb(ctx)) {
|
||||||
if (unlikely(ctx->base.singlestep_enabled || use_exit_tb(ctx))) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#ifndef CONFIG_USER_ONLY
|
return translator_use_goto_tb(&ctx->base, dest);
|
||||||
return (ctx->base.tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK);
|
|
||||||
#else
|
|
||||||
return true;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
|
static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
|
||||||
|
Loading…
Reference in New Issue
Block a user