diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-13 11:46:36 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-13 11:46:36 +0000 |
commit | cf1cf21eac7bfccd33427a1a844e6cf592fd1ea5 (patch) | |
tree | 341c34400ba8403c73fe684cc041dadbc15d5858 /target-ppc | |
parent | a44d2ce18a4d7d732a5bafd3aed330f850d46c8c (diff) |
target-ppc: fix compilation with PRECISE_EMULATION
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6004 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/op_helper.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 9df0b1e57e..d76ec0a4ef 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -1041,7 +1041,7 @@ uint64_t helper_fadd (uint64_t arg1, uint64_t arg2) farg1.d = float64_add(farg1.d, farg2.d, &env->fp_status); } else { /* Magnitude subtraction of infinities */ - farg1.ll == fload_invalid_op_excp(POWERPC_EXCP_FP_VXISI); + farg1.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXISI); } #else farg1.d = float64_add(farg1.d, farg2.d, &env->fp_status); @@ -1095,7 +1095,6 @@ uint64_t helper_fmul (uint64_t arg1, uint64_t arg2) } else { farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status); } -} #else farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status); #endif @@ -1120,7 +1119,7 @@ uint64_t helper_fdiv (uint64_t arg1, uint64_t arg2) } else if (unlikely(iszero(farg2.d))) { if (iszero(farg1.d)) { /* Division of zero by zero */ - farg1.ll fload_invalid_op_excp(POWERPC_EXCP_FP_VXZDZ); + farg1.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXZDZ); } else { /* Division by zero */ farg1.ll = float_zero_divide_excp(farg1.d, farg2.d); @@ -1465,7 +1464,7 @@ uint64_t helper_frsp (uint64_t arg) /* sNaN square root */ farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN); } else { - fard.d = float64_to_float32(farg.d, &env->fp_status); + farg.d = float64_to_float32(farg.d, &env->fp_status); } #else farg.d = float64_to_float32(farg.d, &env->fp_status); |