]> git.proxmox.com Git - qemu.git/commitdiff
softfloat: make USE_SOFTFLOAT_STRUCT_TYPES compile
authorJuan Quintela <quintela@redhat.com>
Tue, 20 Mar 2012 05:24:25 +0000 (05:24 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 21 Apr 2012 13:26:47 +0000 (13:26 +0000)
This change makes it compile and return the same value than the #undef one.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
fpu/softfloat.c

index d37090ac537a6fb21f3e6c3ee77372954b020398..9e1b5f9cab03a5775daffc8b6d94aca7b726c23f 100644 (file)
@@ -2219,7 +2219,7 @@ float32 float32_muladd(float32 a, float32 b, float32 c, int flags STATUS_PARAM)
             }
         }
         /* Zero plus something non-zero : just return the something */
-        return c ^ (signflip << 31);
+        return make_float32(float32_val(c) ^ (signflip << 31));
     }
 
     if (aExp == 0) {
@@ -3772,7 +3772,7 @@ float64 float64_muladd(float64 a, float64 b, float64 c, int flags STATUS_PARAM)
             }
         }
         /* Zero plus something non-zero : just return the something */
-        return c ^ ((uint64_t)signflip << 63);
+        return make_float64(float64_val(c) ^ ((uint64_t)signflip << 63));
     }
 
     if (aExp == 0) {