/illumos-gate/usr/src/uts/intel/os/ |
H A D | hma_fpu.c | 46 hma_fpu_init(hma_fpu_t *fpu) in hma_fpu_init() argument 50 ASSERT0(fpu->hf_inguest); in hma_fpu_init() 54 bcopy(&sse_initial, fpu->hf_guest_fpu.fpu_regs.kfpu_u.kfpu_fx, in hma_fpu_init() 56 fpu->hf_guest_fpu.fpu_xsave_mask = 0; in hma_fpu_init() 64 xs = fpu->hf_guest_fpu.fpu_regs.kfpu_u.kfpu_xs; in hma_fpu_init() 68 fpu->hf_guest_fpu.fpu_xsave_mask = XFEATURE_FP_ALL; in hma_fpu_init() 74 fpu->hf_guest_fpu.fpu_flags = FPU_EN | FPU_VALID; in hma_fpu_init() 80 hma_fpu_free(hma_fpu_t *fpu) in hma_fpu_free() argument 82 if (fpu == NULL) in hma_fpu_free() 85 ASSERT3P(fpu->hf_guest_fpu.fpu_regs.kfpu_u.kfpu_generic, !=, NULL); in hma_fpu_free() [all …]
|
H A D | fpu.c | 2138 fpu_proc_xregs_initial_state(const fpu_ctx_t *fpu, uint64_t feats) in fpu_proc_xregs_initial_state() argument 2140 const struct xsave_state *xs = fpu->fpu_regs.kfpu_u.kfpu_xs; in fpu_proc_xregs_initial_state() 2142 if ((fpu->fpu_flags & (FPU_EN | FPU_VALID)) == 0) { in fpu_proc_xregs_initial_state() 2150 fpu_proc_xregs_xcr_fill(const fpu_ctx_t *fpu, const xsave_proc_info_t *info, in fpu_proc_xregs_xcr_fill() argument 2166 fpu_proc_xregs_xsave_fill(const fpu_ctx_t *fpu, const xsave_proc_info_t *info, in fpu_proc_xregs_xsave_fill() argument 2170 const struct xsave_state *xsave = fpu->fpu_regs.kfpu_u.kfpu_xs; in fpu_proc_xregs_xsave_fill() 2183 if ((fpu->fpu_flags & FPU_EN) == 0) { in fpu_proc_xregs_xsave_fill() 2207 fpu_proc_xregs_std_fill(const fpu_ctx_t *fpu, const xsave_proc_info_t *info, in fpu_proc_xregs_std_fill() argument 2210 if (!fpu_proc_xregs_initial_state(fpu, info->xi_bits)) { in fpu_proc_xregs_std_fill() 2216 xsave_off = (void *)((uintptr_t)fpu->fpu_regs.kfpu_u.kfpu_xs + in fpu_proc_xregs_std_fill() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | xsave_util.c | 78 xsu_fill(xsu_fpu_t *fpu, uint32_t level, uint32_t start) in xsu_fill() argument 80 (void) memset(fpu, 0, sizeof (xsu_fpu_t)); in xsu_fill() 89 fpu->xf_reg[regno]._l[u32] = start; in xsu_fill() 97 fpu->xf_reg[regno]._l[u32] = start; in xsu_fill() 100 for (uint32_t regno = 0; regno < ARRAY_SIZE(fpu->xf_opmask); in xsu_fill() 103 fpu->xf_opmask[regno] = val; in xsu_fill() 111 xsu_overwrite_uctx_xmm(ucontext_t *uctx, const xsu_fpu_t *fpu) in xsu_overwrite_uctx_xmm() argument 117 (void) memcpy(&fp->xmm[i], &fpu->xf_reg[i]._l[0], in xsu_overwrite_uctx_xmm() 123 xsu_overwrite_uctx_ymm(uintptr_t arg, const xsu_fpu_t *fpu) in xsu_overwrite_uctx_ymm() argument 129 &fpu->xf_reg[i]._l[XSU_XMM_U32], in xsu_overwrite_uctx_ymm() [all …]
|
H A D | xregs_dump.c | 28 static xsu_fpu_t fpu; variable 48 xsu_getfpu(&fpu, hwsup); in main() 49 xsu_dump(f, &fpu, hwsup); in main()
|
H A D | xregs_set.c | 33 static xsu_fpu_t fpu; variable 53 xsu_fill(&fpu, hwsup, (uint32_t)ul); in main() 54 xsu_setfpu(&fpu, hwsup); in main()
|
H A D | proc_xregs_set.c | 49 static xsu_fpu_t fpu; variable 80 xsu_fill(&fpu, hwsup, seed); in main() 81 xsu_fpu_to_xregs(&fpu, hwsup, &prx, &prx_len); in main()
|
H A D | fpregs.c | 38 static xsu_fpu_t fpu; variable 71 xsu_fill(&fpu, hwsup, seed); in main() 72 xsu_fpu_to_xregs(&fpu, hwsup, &prx, &prx_len); in main()
|
/illumos-gate/usr/src/uts/sun4u/sunfire/ml/ |
H A D | ac_asm.S | 51 ! i4 = cache of fpu state 58 ! XXX do we need to save the state of the fpu? 104 wr %g0, %i4, %fprs ! fpu back to the way it was
|
/illumos-gate/usr/src/uts/sun4u/serengeti/ml/ |
H A D | sbdp_asm.S | 209 ! i4 = cache of fpu state 216 ! XXX do we need to save the state of the fpu? 262 wr %g0, %i4, %fprs ! fpu back to the way it was
|
/illumos-gate/usr/src/uts/sparc/v9/ml/ |
H A D | float.S | 104 wr %g0, FPRS_FEF, %fprs ! enable fpu in fprs 106 or %g2, PSTATE_PEF, %g1 ! new pstate with fpu enabled 119 wr %g0, %g0, %fprs ! disable fpu and clear fprs
|
/illumos-gate/usr/src/lib/libmvec/i386_hwcap1/ |
H A D | mapfile | 19 hw += fpu cmov sse sse2;
|
/illumos-gate/usr/src/tools/smatch/src/smatch_data/ |
H A D | kernel.implicit_dependencies.no_structs | 243 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 244 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 266 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 267 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 268 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 269 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 276 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 277 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 278 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… 279 …r, (struct thread_struct)->uaccess_err, (struct fpu)->last_cpu, (struct fpu)->fpstate_active, (str… [all …]
|
/illumos-gate/usr/src/lib/libc/i386_hwcap1/ |
H A D | mapfile | 27 hw += fpu cmov sep mmx sse;
|
/illumos-gate/usr/src/lib/libc/i386_hwcap2/ |
H A D | mapfile | 27 hw += fpu cmov amd_sysc mmx sse sse2;
|
/illumos-gate/usr/src/lib/libc/i386_hwcap3/ |
H A D | mapfile | 27 hw += fpu cmov mmx sse;
|
/illumos-gate/usr/src/common/crypto/sha1/ |
H A D | sha1.c | 223 kfpu_t *fpu; in SHA1Update() local 229 fpu = (kfpu_t *)P2ROUNDUP((uintptr_t)fpua, 64); in SHA1Update() 231 usevis = fpu_exists && sha1_savefp(fpu, svfp_ok); in SHA1Update() 311 sha1_restorefp(fpu); in SHA1Update()
|
/illumos-gate/usr/src/uts/intel/ |
H A D | Makefile.files | 53 fpu.o \
|
/illumos-gate/usr/src/uts/intel/syscall/ |
H A D | getcontext.c | 294 void *fpu = NULL; in getsetcontext() local
|
/illumos-gate/usr/src/uts/sun4/ml/ |
H A D | offsets.in | 87 #include <sys/fpu/fpu_simulator.h>
|
H A D | swtch.S | 140 wr %g0, %g0, %fprs ! disable fpu and clear fprs
|
/illumos-gate/usr/src/common/bignum/ |
H A D | bignumimpl.c | 2059 kfpu_t *fpu; in big_modexp_ncp_float() local 2066 fpu = (kfpu_t *)P2ROUNDUP((uintptr_t)fpua, FPR_ALIGN); in big_modexp_ncp_float() 2067 big_savefp(fpu); in big_modexp_ncp_float() 2288 big_restorefp(fpu); in big_modexp_ncp_float()
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | spitfire_asm.S | 1812 bz,a,pt %xcc, 1f ! if the fpu is disabled 1813 wr %g0, FPRS_FEF, %fprs ! ... enable the fpu
|
H A D | opl_olympus_asm.S | 1588 bz,a,pt %xcc, 1f ! if the fpu is disabled 1589 wr %g0, FPRS_FEF, %fprs ! ... enable the fpu
|
H A D | us3_common_asm.S | 2368 bz,a,pt %xcc, 1f ! if the fpu is disabled 2369 wr %g0, FPRS_FEF, %fprs ! ... enable the fpu
|
/illumos-gate/usr/src/common/crypto/sha1/sparc/sun4u/ |
H A D | sha1_asm.S | 46 sha1_savefp(kfpu_t *fpu, int svfp_ok) 51 sha1_restorefp(kfpu_t *fpu)
|