From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8DYI-0004fG-42 for qemu-devel@nongnu.org; Mon, 26 Sep 2011 11:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8DYH-0002Bz-4K for qemu-devel@nongnu.org; Mon, 26 Sep 2011 11:57:06 -0400 From: Peter Maydell Date: Mon, 26 Sep 2011 16:56:55 +0100 Message-Id: <1317052615-21607-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] softfloat: Reinstate accidentally disabled target-specific NaN handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Paolo Bonzini , patches@linaro.org Include config.h in softfloat.c, so that the target specific ifdefs in softfloat-specialize.h are evaluated correctly. This was accidentally broken in commit 789ec7ce2 when config-target.h was removed from softfloat.h, and means that most targets will have been returning the wrong results for calculations involving NaNs. Signed-off-by: Peter Maydell --- fpu/softfloat.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 2b20085..3aafa81 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -35,6 +35,11 @@ these four paragraphs for those parts of this code that are retained. =============================================================================*/ +/* softfloat (and in particular the code in softfloat-specialize.h) is + * target-dependent and needs the TARGET_* macros. + */ +#include "config.h" + #include "softfloat.h" /*---------------------------------------------------------------------------- -- 1.7.1