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
This commit is contained in:
aurel32 2008-12-13 11:46:36 +00:00
parent a44d2ce18a
commit cf1cf21eac

View File

@ -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); farg1.d = float64_add(farg1.d, farg2.d, &env->fp_status);
} else { } else {
/* Magnitude subtraction of infinities */ /* 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 #else
farg1.d = float64_add(farg1.d, farg2.d, &env->fp_status); 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 { } else {
farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status); farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status);
} }
}
#else #else
farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status); farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status);
#endif #endif
@ -1120,7 +1119,7 @@ uint64_t helper_fdiv (uint64_t arg1, uint64_t arg2)
} else if (unlikely(iszero(farg2.d))) { } else if (unlikely(iszero(farg2.d))) {
if (iszero(farg1.d)) { if (iszero(farg1.d)) {
/* Division of zero by zero */ /* 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 { } else {
/* Division by zero */ /* Division by zero */
farg1.ll = float_zero_divide_excp(farg1.d, farg2.d); farg1.ll = float_zero_divide_excp(farg1.d, farg2.d);
@ -1465,7 +1464,7 @@ uint64_t helper_frsp (uint64_t arg)
/* sNaN square root */ /* sNaN square root */
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN); farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN);
} else { } else {
fard.d = float64_to_float32(farg.d, &env->fp_status); farg.d = float64_to_float32(farg.d, &env->fp_status);
} }
#else #else
farg.d = float64_to_float32(farg.d, &env->fp_status); farg.d = float64_to_float32(farg.d, &env->fp_status);