qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH v2 1/2] target-ppc: fix sNaN propagation


From: Nathan Froyd
Subject: [Qemu-devel] Re: [PATCH v2 1/2] target-ppc: fix sNaN propagation
Date: Thu, 13 Jan 2011 09:27:22 -0800
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

On Wed, Jan 12, 2011 at 07:42:47PM +0100, Aurelien Jarno wrote:
> The current FPU code returns 0.0 if one of the operand is a
> signaling NaN and the VXSNAN exception is disabled.
> 
> fload_invalid_op_excp() doesn't return a qNaN in case of a VXSNAN
> exception as the operand should be propagated instead of a new
> qNaN to be generated. Fix that by calling fload_invalid_op_excp()
> only for the exception generation (if enabled), and use the softfloat
> code to correctly compute the result.
> 
> Cc: Alexander Graf <address@hidden>
> Cc: Peter Maydell <address@hidden>
> Cc: Nathan Froyd <address@hidden>
> Signed-off-by: Aurelien Jarno <address@hidden>

Reviewed-by: Nathan Froyd <address@hidden>

-Nathan



reply via email to

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