Skip to contentSkip to conversation

[6516] target-ppc: fix previous commit

Qemu-devel Aurelien Jarno 1 participant 1 message Feb 4, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6516

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6516
Author:   aurel32
Date:     2009-02-04 14:08:08 +0000 (Wed, 04 Feb 2009)

Log Message:
-----------
target-ppc: fix previous commit

Modified Paths:
--------------
trunk/target-ppc/op_helper.c

Modified: trunk/target-ppc/op_helper.c
===================================================================

target-ppc/op_helper.c +4 -1
@@ -1502,6 +1502,7 @@
 uint64_t helper_fre (uint64_t arg)
 {
     CPU_DoubleU farg;
+    farg.ll = arg;
 
     if (unlikely(float64_is_signaling_nan(farg.d))) {
         /* sNaN reciprocal */
@@ -1515,8 +1516,9 @@
 /* fres - fres. */
 uint64_t helper_fres (uint64_t arg)
 {
-    CPU_Double farg;
+    CPU_DoubleU farg;
     float32 f32;
+    farg.ll = arg;
 
     if (unlikely(float64_is_signaling_nan(farg.d))) {
         /* sNaN reciprocal */
@@ -1534,6 +1536,7 @@
 {
     CPU_DoubleU farg;
     float32 f32;
+    farg.ll = arg;
 
     if (unlikely(float64_is_signaling_nan(farg.d))) {
         /* sNaN reciprocal square root */