aboutsummaryrefslogtreecommitdiff
path: root/i386/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-28 12:07:41 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-28 12:08:31 +0100
commit44e3fb20a17dac403ec022a9c4d41dc237f3c79d (patch)
tree5439f6f4b664bd33ca4e18c1d24f7f9d0a6e9963 /i386/include
parentad753a3e1c6c6fb100fa4c6440b056424f66b3f6 (diff)
downloadgnumach-44e3fb20a17dac403ec022a9c4d41dc237f3c79d.tar.gz
gnumach-44e3fb20a17dac403ec022a9c4d41dc237f3c79d.tar.bz2
gnumach-44e3fb20a17dac403ec022a9c4d41dc237f3c79d.zip
fpu: Rename FP_387X to FP_387FX
To leave FP_387X for XSAVE-supporting CPU (as opposed to FXSAVE-supporting CPU) * i386/include/mach/i386/fp_reg.h (FP_387X): Rename to FP_387FX. (FP_387X): New macro. * i386/i386/fpu.c (init_fpu, fpu_set_state, fpu_get_state, fpexterrflt, fpastintr, fp_save, fp_load, fp_state_alloc): Update accordingly. * i386/i386/fpu.h (fpu_save_context): Likewise.
Diffstat (limited to 'i386/include')
-rw-r--r--i386/include/mach/i386/fp_reg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/i386/include/mach/i386/fp_reg.h b/i386/include/mach/i386/fp_reg.h
index 2f25024a..648511ad 100644
--- a/i386/include/mach/i386/fp_reg.h
+++ b/i386/include/mach/i386/fp_reg.h
@@ -125,6 +125,7 @@ _Static_assert(sizeof(struct i386_xfp_save) == 512);
#define FP_SOFT 1 /* software FP emulator */
#define FP_287 2 /* 80287 */
#define FP_387 3 /* 80387 or 80486 */
-#define FP_387X 4 /* FXSAVE/RSTOR-capable */
+#define FP_387FX 4 /* FXSAVE/RSTOR-capable */
+#define FP_387X 5 /* XSAVE/RSTOR-capable */
#endif /* _MACH_I386_FP_REG_H_ */