fix fesetenv(FE_DFL_ENV) on mips

mips fesetenv did not handle FE_DFL_ENV, now fcsr is cleared in that
case.
This commit is contained in:
Szabolcs Nagy 2015-02-08 18:56:52 +01:00
parent 3f92f92cb9
commit 5fc1487832
1 changed files with 3 additions and 1 deletions

View File

@ -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