qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [Qemu-devel] [PATCH v4 10/10] tcg: Allow goto_tb to any t


From: Richard Henderson
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH v4 10/10] tcg: Allow goto_tb to any target PC in user mode
Date: Thu, 28 Apr 2016 11:03:48 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 04/20/2016 02:15 PM, Sergey Fedorov wrote:
> --- a/target-alpha/translate.c
> +++ b/target-alpha/translate.c
> @@ -464,8 +464,12 @@ static bool use_goto_tb(DisasContext *ctx, uint64_t dest)
>      if (in_superpage(ctx, dest)) {
>          return true;
>      }
> +#ifndef CONFIG_USER_ONLY
>      /* Check for the dest on the same page as the start of the TB.  */
>      return ((ctx->tb->pc ^ dest) & TARGET_PAGE_MASK) == 0;
> +#else
> +    return true;
> +#endif
>  }
>  

Nit: The in_superpage test just above is for kernel mode and need not be tested
in user-only.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]