qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] target/arm/vfp_helper: Call set_fpscr_to_host b


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH] target/arm/vfp_helper: Call set_fpscr_to_host before updating to FPSCR
Date: Fri, 5 Jul 2019 14:45:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

Correct subject: "Call set_fpscr_to_host before updating FPSCR reg"
(or without "reg").

On 7/5/19 2:43 PM, Philippe Mathieu-Daudé wrote:
> In commit e9d652824b0 we extracted the vfp_set_fpscr_to_host()
> function but failed at calling it in the correct place, we call
> it after xregs[ARM_VFP_FPSCR] is modified.
> 
> Fix by calling this function before we update FPSCR.
> 
> Reported-by: Laurent Desnogues <address@hidden>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
>  target/arm/vfp_helper.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/target/arm/vfp_helper.c b/target/arm/vfp_helper.c
> index 46041e3294..9710ef1c3e 100644
> --- a/target/arm/vfp_helper.c
> +++ b/target/arm/vfp_helper.c
> @@ -197,6 +197,8 @@ void HELPER(vfp_set_fpscr)(CPUARMState *env, uint32_t val)
>          val &= 0xf7c0009f;
>      }
>  
> +    vfp_set_fpscr_to_host(env, val);
> +
>      /*
>       * We don't implement trapped exception handling, so the
>       * trap enable bits, IDE|IXE|UFE|OFE|DZE|IOE are all RAZ/WI (not RES0!)
> @@ -217,8 +219,6 @@ void HELPER(vfp_set_fpscr)(CPUARMState *env, uint32_t val)
>      env->vfp.qc[1] = 0;
>      env->vfp.qc[2] = 0;
>      env->vfp.qc[3] = 0;
> -
> -    vfp_set_fpscr_to_host(env, val);
>  }
>  
>  void vfp_set_fpscr(CPUARMState *env, uint32_t val)
> 



reply via email to

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