diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-01 21:51:15 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-01 21:51:15 +0200 |
commit | 5aa224c153db83a9fe82848860a062c7c3566cc5 (patch) | |
tree | 204c17aa735b4aaed6265b14f14880ede6ab74cb /sys/src/9/pc/main.c | |
parent | e880549da638e3fa20465e7ed90d3803aa28fc18 (diff) |
pc: use fpsave() instead of fpenv() to capture fp exception context
Diffstat (limited to 'sys/src/9/pc/main.c')
-rw-r--r-- | sys/src/9/pc/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/9/pc/main.c b/sys/src/9/pc/main.c index 02ca17d81..e972c2854 100644 --- a/sys/src/9/pc/main.c +++ b/sys/src/9/pc/main.c @@ -706,8 +706,9 @@ matherror(Ureg*, void*) /* * get floating point state to check out error */ - fpenv(&up->fpsave); - mathnote(up->fpsave.status, up->fpsave.pc); + fpsave(&up->fpsave); + up->fpstate = FPinactive; + mathnote(up->fpsave.fsw, up->fpsave.fpuip); } /* |