From: Peter Maydell Date: Mon, 26 Sep 2011 15:56:55 +0000 (+0100) Subject: softfloat: Reinstate accidentally disabled target-specific NaN handling X-Git-Tag: TizenStudio_2.0_p2.3~2179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2151ee21aaac2981c1399c84a04b6803e0282f5a;p=sdk%2Femulator%2Fqemu.git softfloat: Reinstate accidentally disabled target-specific NaN handling 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 Signed-off-by: Blue Swirl --- 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" /*----------------------------------------------------------------------------