Commit cf1cf21eac7bfccd33427a1a844e6cf592fd1ea5

Authored by aurel32
1 parent a44d2ce1

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
Showing 1 changed file with 3 additions and 4 deletions
target-ppc/op_helper.c
... ... @@ -1041,7 +1041,7 @@ uint64_t helper_fadd (uint64_t arg1, uint64_t arg2)
1041 1041 farg1.d = float64_add(farg1.d, farg2.d, &env->fp_status);
1042 1042 } else {
1043 1043 /* Magnitude subtraction of infinities */
1044   - farg1.ll == fload_invalid_op_excp(POWERPC_EXCP_FP_VXISI);
  1044 + farg1.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXISI);
1045 1045 }
1046 1046 #else
1047 1047 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)
1095 1095 } else {
1096 1096 farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status);
1097 1097 }
1098   -}
1099 1098 #else
1100 1099 farg1.d = float64_mul(farg1.d, farg2.d, &env->fp_status);
1101 1100 #endif
... ... @@ -1120,7 +1119,7 @@ uint64_t helper_fdiv (uint64_t arg1, uint64_t arg2)
1120 1119 } else if (unlikely(iszero(farg2.d))) {
1121 1120 if (iszero(farg1.d)) {
1122 1121 /* Division of zero by zero */
1123   - farg1.ll fload_invalid_op_excp(POWERPC_EXCP_FP_VXZDZ);
  1122 + farg1.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXZDZ);
1124 1123 } else {
1125 1124 /* Division by zero */
1126 1125 farg1.ll = float_zero_divide_excp(farg1.d, farg2.d);
... ... @@ -1465,7 +1464,7 @@ uint64_t helper_frsp (uint64_t arg)
1465 1464 /* sNaN square root */
1466 1465 farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN);
1467 1466 } else {
1468   - fard.d = float64_to_float32(farg.d, &env->fp_status);
  1467 + farg.d = float64_to_float32(farg.d, &env->fp_status);
1469 1468 }
1470 1469 #else
1471 1470 farg.d = float64_to_float32(farg.d, &env->fp_status);
... ...