softfloat: Implement flushing input denormals to zero
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 6 Jan 2011 19:37:53 +0000 (19:37 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 6 Jan 2011 21:16:59 +0000 (22:16 +0100)
commit4a40f076887d158cfaecf5193f954c360446143a
tree5aa60894bb89c588fe13eaae99fd5821e654498f
parent67b3a5d960bf381ee08ee33e7d4ccfdb3876254f
softfloat: Implement flushing input denormals to zero

Add support to softfloat for flushing input denormal float32 and float64
to zero. softfloat's existing 'flush_to_zero' flag only flushes denormals
to zero on output. Some CPUs need input denormals to be flushed before
processing as well. Implement this, using a new status flag to enable it
and a new exception status bit to indicate when it has happened. Existing
CPUs should be unaffected as there is no behaviour change unless the
mode is enabled.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat.c
fpu/softfloat.h