softfloat: Reinstate accidentally disabled target-specific NaN handling
PATCH 1/1 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.
--- fpu/softfloat.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
fpu/softfloat.c +5 -0
@@ -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" /*----------------------------------------------------------------------------
Signature · 1 line
1.7.1
Blue Swirl
AppliedThanks, applied.
Quoted 32 lines · Peter Maydell
Include
config.hinsoftfloat.c, so that the target specific ifdefs insoftfloat-specialize.hare evaluated correctly. This was accidentally broken in commit789ec7ce2whenconfig-target.hwas removed fromsoftfloat.h, and means that most targets will have been returning the wrong results for calculations involving NaNs.Signed-off-by Peter Maydell <[email protected]>---
fpu/softfloat.c | 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)fpu/softfloat.c +0
-0@@ -35,6 +35,11 @@ these four paragraphs for those parts of this code that are retained.=============================================================================*/
fpu/softfloat.c +5
-0+/* 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