diff options
Diffstat (limited to 'target-m68k')
-rw-r--r-- | target-m68k/helper.c | 2 | ||||
-rw-r--r-- | target-m68k/op.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 460ef3c03a..f6b0cd6b35 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -255,7 +255,7 @@ float64 helper_sub_cmpf64(CPUM68KState *env, float64 src0, float64 src1) /* +/-inf compares equal against itself, but sub returns nan. */ if (!float64_is_nan(src0) && !float64_is_nan(src1)) { - res = 0; + res = float64_zero; if (float64_lt_quiet(src0, res, &env->fp_status)) res = float64_chs(res); } diff --git a/target-m68k/op.c b/target-m68k/op.c index 8600f43f15..140c71d890 100644 --- a/target-m68k/op.c +++ b/target-m68k/op.c @@ -108,7 +108,7 @@ OP(movf64) OP(zerof64) { - set_opf64(PARAM1, 0); + set_opf64(PARAM1, float64_zero); FORCE_RET(); } |