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 .global fesetenv
.type fesetenv,@function .type fesetenv,@function
fesetenv: fesetenv:
addiu $5, $4, 1
beq $5, $0, 1f
lw $5, 0($4) lw $5, 0($4)
ctc1 $5, $31 1: ctc1 $5, $31
jr $ra jr $ra
li $2, 0 li $2, 0