From 06f7332ab9ba2f4a7e24f5b7c58473c4aa558ddb Mon Sep 17 00:00:00 2001 From: aurel32 Date: Wed, 4 Feb 2009 14:08:08 +0000 Subject: target-ppc: fix previous commit Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6516 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/op_helper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 17a9976..b8e5538 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -1502,6 +1502,7 @@ uint64_t helper_fsqrt (uint64_t arg) 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 @@ uint64_t helper_fre (uint64_t arg) /* 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 @@ uint64_t helper_frsqrte (uint64_t arg) { CPU_DoubleU farg; float32 f32; + farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { /* sNaN reciprocal square root */ -- cgit v1.1