From: Szabolcs Nagy Date: Sun, 8 Feb 2015 17:56:52 +0000 (+0100) Subject: fix fesetenv(FE_DFL_ENV) on mips X-Git-Tag: v1.1.7~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5fc1487832e16aa2119e735a388d5f36c8c139e2;p=oweals%2Fmusl.git fix fesetenv(FE_DFL_ENV) on mips mips fesetenv did not handle FE_DFL_ENV, now fcsr is cleared in that case. --- diff --git a/src/fenv/mips/fenv.s b/src/fenv/mips/fenv.s index 095cb606..a3233c1e 100644 --- a/src/fenv/mips/fenv.s +++ b/src/fenv/mips/fenv.s @@ -57,7 +57,9 @@ fegetenv: .global fesetenv .type fesetenv,@function fesetenv: + addiu $5, $4, 1 + beq $5, $0, 1f lw $5, 0($4) - ctc1 $5, $31 +1: ctc1 $5, $31 jr $ra li $2, 0