aboutsummaryrefslogtreecommitdiff
path: root/fpu/softfloat.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-09-26 16:56:55 +0100
committerBlue Swirl <blauwirbel@gmail.com>2011-10-01 06:19:07 +0000
commit2ac8bd03c55422a7505ece2a0d39a396eb09c6e5 (patch)
treee51ba73ed295621e6878409758d264668893f440 /fpu/softfloat.c
parentdf0eda9b73420363ad9dbf8c7eff47a0c4e47ff3 (diff)
downloadqemu-2ac8bd03c55422a7505ece2a0d39a396eb09c6e5.zip
qemu-2ac8bd03c55422a7505ece2a0d39a396eb09c6e5.tar.gz
qemu-2ac8bd03c55422a7505ece2a0d39a396eb09c6e5.tar.bz2
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 <peter.maydell@linaro.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'fpu/softfloat.c')
-rw-r--r--fpu/softfloat.c5
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"
/*----------------------------------------------------------------------------