[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/5] softfloat: Reinstate accidentally disabled targ
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 1/5] softfloat: Reinstate accidentally disabled target-specific NaN handling |
Date: |
Wed, 28 Sep 2011 18:27:29 +0100 |
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 <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/5] target-arm: Implement UDIV/SDIV and fused multiply-accumulate, Peter Maydell, 2011/09/28
- [Qemu-devel] [PATCH 5/5] target-arm: Implement VFPv4 fused multiply-accumulate insns, Peter Maydell, 2011/09/28
- [Qemu-devel] [PATCH 3/5] target-arm: Add ARM UDIV/SDIV support, Peter Maydell, 2011/09/28
- [Qemu-devel] [PATCH 1/5] softfloat: Reinstate accidentally disabled target-specific NaN handling,
Peter Maydell <=
- [Qemu-devel] [PATCH 2/5] target-arm: v6 media multiply space: UNDEF on unassigned encodings, Peter Maydell, 2011/09/28
- [Qemu-devel] [PATCH 4/5] softfloat: Implement fused multiply-add, Peter Maydell, 2011/09/28
- Re: [Qemu-devel] [PATCH 0/5] target-arm: Implement UDIV/SDIV and fused multiply-accumulate, Blue Swirl, 2011/09/28