From f035f7d9711cb815709802f453c78ac0c611e882 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 8 Feb 2015 18:56:52 +0100 Subject: [PATCH] fix fesetenv(FE_DFL_ENV) on mips mips fesetenv did not handle FE_DFL_ENV, now fcsr is cleared in that case. (cherry picked from commit 5fc1487832e16aa2119e735a388d5f36c8c139e2) --- src/fenv/mips/fenv.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.25.1