diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2023-05-22 00:39:58 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2023-05-22 00:39:58 +0000 |
commit | b5581bbd4cd5d88967ac75b20501eb19a3ced18b (patch) | |
tree | d695d6793ed5913b9561c8b68482fbc96b281ece /sys | |
parent | dd0fd50424a017e81769d9a6c9b9ba7648cf0271 (diff) |
The fp_ex_[st]w struct savefpu members were inherited from NetBSD where
they're used in the 32bit-compat support, which we dropped years ago.
Bye bye!
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/fpu.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/include/fpu.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/amd64/amd64/fpu.c b/sys/arch/amd64/amd64/fpu.c index 438de255bd6..b1a7192ba59 100644 --- a/sys/arch/amd64/amd64/fpu.c +++ b/sys/arch/amd64/amd64/fpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu.c,v 1.43 2022/08/07 23:56:06 guenther Exp $ */ +/* $OpenBSD: fpu.c,v 1.44 2023/05/22 00:39:57 guenther Exp $ */ /* $NetBSD: fpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /*- @@ -116,8 +116,6 @@ fputrap(int type) fwait(); statbits = sfp->fp_fxsave.fx_fsw; } - sfp->fp_ex_tw = sfp->fp_fxsave.fx_ftw; - sfp->fp_ex_sw = sfp->fp_fxsave.fx_fsw; return x86fpflags_to_siginfo(statbits); } diff --git a/sys/arch/amd64/include/fpu.h b/sys/arch/amd64/include/fpu.h index 7ed0a73b619..6f05c9e6ac9 100644 --- a/sys/arch/amd64/include/fpu.h +++ b/sys/arch/amd64/include/fpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu.h,v 1.17 2019/11/29 22:34:09 mortimer Exp $ */ +/* $OpenBSD: fpu.h,v 1.18 2023/05/22 00:39:57 guenther Exp $ */ /* $NetBSD: fpu.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */ #ifndef _MACHINE_FPU_H_ @@ -40,8 +40,6 @@ struct savefpu { struct fxsave64 fp_fxsave; /* see above */ struct xstate_hdr fp_xstate; u_int64_t fp_ymm[16][2]; - u_int16_t fp_ex_sw; /* saved status from last exception */ - u_int16_t fp_ex_tw; /* saved tag from last exception */ }; /* |