mirror of https://github.com/xemu-project/xemu.git
target/alpha: 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
3fd3442abe
commit
21a7e89ece
|
@ -440,12 +440,7 @@ static DisasJumpType gen_store_conditional(DisasContext *ctx, int ra, int rb,
|
||||||
|
|
||||||
static bool use_goto_tb(DisasContext *ctx, uint64_t dest)
|
static bool use_goto_tb(DisasContext *ctx, uint64_t dest)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_USER_ONLY
|
return translator_use_goto_tb(&ctx->base, dest);
|
||||||
/* Check for the dest on the same page as the start of the TB. */
|
|
||||||
return ((ctx->base.tb->pc ^ dest) & TARGET_PAGE_MASK) == 0;
|
|
||||||
#else
|
|
||||||
return true;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp)
|
static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp)
|
||||||
|
|
Loading…
Reference in New Issue