Received: from [140.186.70.92] (port=44872 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pauff-0004Rd-7N for qemu-devel@nongnu.org; Thu, 06 Jan 2011 13:34:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Paufe-0004Xb-62 for qemu-devel@nongnu.org; Thu, 06 Jan 2011 13:34:47 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:51203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Paufd-0004XV-Vn for qemu-devel@nongnu.org; Thu, 06 Jan 2011 13:34:46 -0500 From: Peter Maydell Date: Thu, 6 Jan 2011 18:34:42 +0000 Message-Id: <1294338884-20322-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] linux-user: fix incorrect NaN detection in ARM nwfpe emulation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio 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. (As such I have checked it against the equivalent Linux kernel code but I don't have a test case for it.) Peter Maydell (2): softfloat: Implement floatx80_is_any_nan() and float128_is_any_nan() linux-user: Fix incorrect NaN detection in ARM nwfpe emulation fpu/softfloat.h | 11 +++++++++++ linux-user/arm/nwfpe/fpa11_cprt.c | 14 +++++++------- 2 files changed, 18 insertions(+), 7 deletions(-)