Skip to content

Commit 3b0361c

Browse files
committed
fixup! target/ppc: Make madd instructions work with hardfpu
1 parent f0ea0f0 commit 3b0361c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/ppc/fpu_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, \
22822282
for (i = 0; i < nels; i++) { \
22832283
float_status tstat = env->fp_status; \
22842284
set_float_exception_flags(0, &tstat); \
2285-
if (!(fpscr_mask & FP_FI) && (env->fpscr & FP_FI)) { \
2285+
if (!(fpscr_mask & FP_FI) && (env->fpscr & FP_XX)) { \
22862286
tstat.float_exception_flags |= float_flag_inexact; \
22872287
} \
22882288
t.fld = tp##_muladd(s1->fld, s3->fld, s2->fld, maddflgs, &tstat); \

0 commit comments

Comments
 (0)