From 4324d1e97eab18595107d6fcc204918f4707c0ca Mon Sep 17 00:00:00 2001 From: Bharata B Rao Date: Fri, 2 Mar 2018 00:15:28 -0500 Subject: [PATCH] softfloat: Fix the default qNAN for target-ppc Currently float128_default_nan() returns 0xFFFF800000000000 in the higher double word, but it should return 0x7FFF800000000000 which is the correct higher double word for default qNAN on PowerPC. Backports commit 5d51eaea84899d88cb161fab3f089168e3812e9e from qemu --- qemu/fpu/softfloat-specialize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/fpu/softfloat-specialize.h b/qemu/fpu/softfloat-specialize.h index 131489ac..bc95b45d 100644 --- a/qemu/fpu/softfloat-specialize.h +++ b/qemu/fpu/softfloat-specialize.h @@ -184,7 +184,7 @@ float128 float128_default_nan(float_status *status) r.high = LIT64(0x7FFF7FFFFFFFFFFF); } else { r.low = LIT64(0x0000000000000000); -#if defined(TARGET_S390X) +#if defined(TARGET_S390X) || defined(TARGET_PPC) r.high = LIT64(0x7FFF800000000000); #else r.high = LIT64(0xFFFF800000000000);