Restore condition codes if we pull the special_fp_store
authordavem <davem@openbsd.org>
Sun, 3 Dec 1995 02:24:16 +0000 (02:24 +0000)
committerdavem <davem@openbsd.org>
Sun, 3 Dec 1995 02:24:16 +0000 (02:24 +0000)
trick before returning from the trap.

sys/arch/sparc/sparc/locore.s

index 5fe3bf0..0ada5b6 100644 (file)
@@ -1340,6 +1340,8 @@ fp_exception:
         EMPTY
        sethi   %hi(savefpcont), %l4    ! yes, "return" to the special code
        or      %lo(savefpcont), %l4, %l4
+       wr      %l0, 0x0, %psr
+       nop; nop; nop;
        jmp     %l4
         rett   %l4 + 4