Home
last modified time | relevance | path

Searched refs:fxsave (Results 1 – 25 of 63) sorted by relevance

123

/netbsd-src/tests/sys/x86/
H A Dt_convert_xmm_s87.c69 struct fxsave fxsave, fxsave_conv; in ATF_TC_BODY() local
90 : "b"(ST_INPUTS), "c"(i), "m"(fsave), "m"(fxsave) in ATF_TC_BODY()
95 ATF_REQUIRE_EQ(fsave.s87_cw, fxsave.fx_cw); in ATF_TC_BODY()
96 ATF_REQUIRE_EQ(fsave.s87_sw, fxsave.fx_sw); in ATF_TC_BODY()
99 process_xmm_to_s87(&fxsave, &fsave_conv); in ATF_TC_BODY()
112 ATF_CHECK_EQ(fxsave_conv.fx_cw, fxsave.fx_cw); in ATF_TC_BODY()
113 ATF_CHECK_EQ(fxsave_conv.fx_sw, fxsave.fx_sw); in ATF_TC_BODY()
114 ATF_CHECK_EQ(fxsave_conv.fx_tw, fxsave.fx_tw); in ATF_TC_BODY()
117 fxsave.fx_87_ac[j].r.f87_exp_sign); in ATF_TC_BODY()
119 fxsave.fx_87_ac[j].r.f87_mantissa); in ATF_TC_BODY()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/i386/
H A Dcrtfastmath.c61 } __attribute__ ((aligned (16))) fxsave; in set_fast_math_sse() local
65 fxsave.mxcsr_mask = 0; in set_fast_math_sse()
67 __builtin_ia32_fxsave (&fxsave); in set_fast_math_sse()
69 mxcsr = fxsave.mxcsr; in set_fast_math_sse()
71 if (fxsave.mxcsr_mask & MXCSR_DAZ) in set_fast_math_sse()
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/i386/
H A Dcrtfastmath.c61 } __attribute__ ((aligned (16))) fxsave; in set_fast_math_sse() local
65 fxsave.mxcsr_mask = 0; in set_fast_math_sse()
67 __builtin_ia32_fxsave (&fxsave); in set_fast_math_sse()
69 mxcsr = fxsave.mxcsr; in set_fast_math_sse()
71 if (fxsave.mxcsr_mask & MXCSR_DAZ) in set_fast_math_sse()
/netbsd-src/sys/arch/x86/include/
H A Dfpu.h27 void process_xmm_to_s87(const struct fxsave *, struct save87 *);
28 void process_s87_to_xmm(const struct save87 *, struct fxsave *);
39 void process_write_fpregs_xmm(struct lwp *, const struct fxsave *);
42 void process_read_fpregs_xmm(struct lwp *, struct fxsave *);
H A Dcpu_extended_state.h117 struct fxsave { struct
131 __CTASSERT_NOLINT(sizeof(struct fxsave) == 512); argument
213 struct fxsave xs_fxsave;
232 struct fxsave sv_xmm;
H A Dcpufunc.h415 fxsave(void *addr) in fxsave() function
/netbsd-src/sys/arch/i386/i386/
H A Dprocess_machdep.c246 __CTASSERT(sizeof *regs == sizeof (struct fxsave)); in process_machdep_read_xmmregs()
247 process_read_fpregs_xmm(l, (struct fxsave *)regs); in process_machdep_read_xmmregs()
270 __CTASSERT(sizeof *regs == sizeof (struct fxsave)); in process_machdep_write_xmmregs()
271 process_write_fpregs_xmm(l, (const struct fxsave *)regs); in process_machdep_write_xmmregs()
H A Dmachdep.c1644 __CTASSERT(sizeof (struct fxsave) == in cpu_getmcontext()
1646 process_read_fpregs_xmm(l, (struct fxsave *) in cpu_getmcontext()
1712 __CTASSERT(sizeof (struct fxsave) == in cpu_setmcontext()
1718 process_write_fpregs_xmm(l, (const struct fxsave *) in cpu_setmcontext()
/netbsd-src/sys/arch/x86/x86/
H A Dconvert_xmm_s87.c40 process_xmm_to_s87(const struct fxsave *sxmm, struct save87 *s87) in process_xmm_to_s87()
122 process_s87_to_xmm(const struct save87 *s87, struct fxsave *sxmm) in process_s87_to_xmm()
H A Dfpu.c207 fxsave(&fpusave); in fpuinit_mxcsr_mask()
268 XS64(fxsave)(area); in fpu_area_save() local
723 process_write_fpregs_xmm(struct lwp *l, const struct fxsave *fpregs) in process_write_fpregs_xmm()
756 process_read_fpregs_xmm(struct lwp *l, struct fxsave *fpregs) in process_read_fpregs_xmm()
H A Didentcpu.c784 * #defined to 1, because fxsave/sse/sse2 are always present. in cpu_probe_fpu()
789 x86_fpu_save_size = sizeof(struct fxsave); in cpu_probe_fpu()
814 if (descs[2] > sizeof(struct fxsave))
/netbsd-src/sys/arch/amd64/include/
H A Dfpu.h10 #define fxsave64 fxsave
H A Dreg.h56 struct fxsave fxstate;
H A Dnetbsd32_machdep.h142 struct fxsave fxstate;
/netbsd-src/sys/arch/i386/include/
H A Dreg.h101 struct fxsave fxstate;
/netbsd-src/sys/compat/linux/arch/amd64/
H A Dlinux_machdep.c229 /* The netbsd and linux structures both match the fxsave data */ in linux_sendsig()
322 struct fxsave *fxarea; in linux_sys_rt_sigreturn()
336 fxarea = (struct fxsave *)&mctx->__fpregs; in linux_sys_rt_sigreturn()
/netbsd-src/sys/dev/nvmm/x86/
H A Dnvmm_x86.h267 struct fxsave fpu;
H A Dnvmm_x86_svm.c948 cpudata->gprs[NVMM_X64_GPR_RBX] = sizeof(struct fxsave); in svm_inkernel_handle_cpuid()
953 cpudata->gprs[NVMM_X64_GPR_RCX] = sizeof(struct fxsave) + 64; in svm_inkernel_handle_cpuid()
1834 struct fxsave *fpustate; in svm_vcpu_setstate()
1953 fpustate = (struct fxsave *)cpudata->gfpu.xsh_fxsave; in svm_vcpu_setstate()
H A Dnvmm_x86_vmx.c1380 cpudata->gprs[NVMM_X64_GPR_RBX] = sizeof(struct fxsave); in vmx_inkernel_handle_cpuid()
1385 cpudata->gprs[NVMM_X64_GPR_RCX] = sizeof(struct fxsave) + 64; in vmx_inkernel_handle_cpuid()
2548 struct fxsave *fpustate; in vmx_vcpu_setstate()
2684 fpustate = (struct fxsave *)cpudata->gfpu.xsh_fxsave; in vmx_vcpu_setstate()
/netbsd-src/tests/lib/libc/sys/
H A Dt_ptrace_x86_wait.h2445 struct fxsave fxsave; in get_fpu_regs() local
2468 : "a"(out->st), "m"(fsave), "m"(fxsave) in get_fpu_regs()
2472 FORKEE_ASSERT(fsave.s87_cw == fxsave.fx_cw); in get_fpu_regs()
2473 FORKEE_ASSERT(fsave.s87_sw == fxsave.fx_sw); in get_fpu_regs()
2479 out->tw_abridged = fxsave.fx_tw; in get_fpu_regs()
2480 out->opcode = fxsave.fx_opcode; in get_fpu_regs()
2481 out->ip = fxsave.fx_ip; in get_fpu_regs()
2482 out->dp = fxsave.fx_dp; in get_fpu_regs()
2945 struct fxsave* fxs = NULL; in x86_register_test()
/netbsd-src/external/lgpl3/gmp/dist/mpn/x86/pentium4/
H A DREADME103 fxsave/fxrestor will be needed if they're used.
/netbsd-src/sys/arch/amd64/amd64/
H A Dnetbsd32_machdep.c835 process_write_fpregs_xmm(l, (const struct fxsave *) in cpu_setmcontext32()
887 process_read_fpregs_xmm(l, (struct fxsave *) in cpu_getmcontext32()
H A Dmachdep.c2117 process_read_fpregs_xmm(l, (struct fxsave *)&mcp->__fpregs); in cpu_setmcontext()
2170 process_write_fpregs_xmm(l, (const struct fxsave *)&mcp->__fpregs); in cpu_mcontext_validate()
/netbsd-src/external/gpl3/binutils/dist/include/opcode/
H A DChangeLog-9103887 * i386.h (i386_optab): Cpu686 for sysenter,sysexit,fxsave,fxrestore.
1497 * i386.h: Use FP, not sl_Suf, for fxsave and fxrstor.
1501 * i386.h: Add support for fxsave, fxrstor, sysenter and sysexit.
/netbsd-src/external/gpl3/gdb/dist/include/opcode/
H A DChangeLog-9103887 * i386.h (i386_optab): Cpu686 for sysenter,sysexit,fxsave,fxrestore.
1497 * i386.h: Use FP, not sl_Suf, for fxsave and fxrstor.
1501 * i386.h: Add support for fxsave, fxrstor, sysenter and sysexit.

123