linux-user: Fix incorrect NaN detection in ARM nwfpe emulation
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 6 Jan 2011 18:34:44 +0000 (18:34 +0000)
committerRiku Voipio <riku.voipio@iki.fi>
Fri, 7 Jan 2011 15:38:48 +0000 (17:38 +0200)
commitda2040215785d493bcabfd1af0dc2ee8a7f7e8cc
tree2200101863881636b0aaed1fec1ac499ad563f67
parentca3c07e3bbeb1dd8a5442cf71084da9b834457cf
linux-user: Fix incorrect NaN detection in ARM nwfpe emulation

The code in the linux-user ARM nwfpe emulation was incorrectly
checking only for quiet NaNs when it should have been checking
for any kind of NaN. This is probably because the code in
question was taken from the Linux kernel, whose copy of the
softfloat library had been modified so that float*_is_nan()
returned true for all NaNs, not just quiet ones. The qemu
equivalent function is float*_is_any_nan(), so use that.
NB that this code is really obsolete since nobody uses FPE
for actual arithmetic now; this is just cleanup following
the recent renaming of the NaN related functions.

Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/arm/nwfpe/fpa11_cprt.c