Home
last modified time | relevance | path

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

/linux/arch/x86/kernel/fpu/
H A Dregset.c82 return membuf_write(&to, &fpu->fpstate->regs.fxsave, in xfpregs_get()
83 sizeof(fpu->fpstate->regs.fxsave)); in xfpregs_get()
116 memcpy(&fpu->fpstate->regs.fxsave, &newstate, sizeof(newstate)); in xfpregs_set()
119 BUILD_BUG_ON(sizeof(fpu->__fpstate.regs.fxsave.xmm_space) != 16 * 16); in xfpregs_set()
121 memset(&fpu->fpstate->regs.fxsave.xmm_space[8*4], 0, 8 * 16); in xfpregs_set()
285 static inline u32 twd_fxsr_to_i387(struct fxregs_state *fxsave) in twd_fxsr_to_i387() argument
288 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387()
289 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
296 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387()
332 struct fxregs_state *fxsave) in __convert_from_fxsr() argument
[all …]
H A Dcore.c124 fxsave(&fpu->fpstate->regs.fxsave); in save_fpregs_to_fpstate()
184 fxrstor(&fpstate->regs.fxsave); in restore_fpregs_from_fpstate()
382 memcpy(&ustate->fxsave, &kstate->regs.fxsave, in fpu_copy_guest_fpstate_to_uabi()
383 sizeof(ustate->fxsave)); in fpu_copy_guest_fpstate_to_uabi()
399 if (ustate->fxsave.mxcsr & ~mxcsr_feature_mask) in fpu_copy_uabi_to_guest_fpstate()
401 memcpy(&kstate->regs.fxsave, &ustate->fxsave, sizeof(ustate->fxsave)); in fpu_copy_uabi_to_guest_fpstate()
484 fpstate->regs.fxsave.cwd = 0x37f; in fpstate_init_fxstate()
485 fpstate->regs.fxsave.mxcsr = MXCSR_DEFAULT; in fpstate_init_fxstate()
702 fxrstor(&init_fpstate.regs.fxsave); in restore_fpregs_from_init_fpstate()
857 cwd = fpu->fpstate->regs.fxsave.cwd; in fpu__exception_code()
[all …]
H A Dsignal.c78 fxsave(&tsk->thread.fpu.fpstate->regs.fxsave); in save_fsave_header()
400 if (__copy_from_user(&fpregs->fxsave, buf_fx, in __fpu_restore_sig()
401 sizeof(fpregs->fxsave))) in __fpu_restore_sig()
406 if (fpregs->fxsave.mxcsr & ~mxcsr_feature_mask) in __fpu_restore_sig()
410 fpregs->fxsave.mxcsr &= mxcsr_feature_mask; in __fpu_restore_sig()
419 convert_to_fxsr(&fpregs->fxsave, &env); in __fpu_restore_sig()
438 success = !fxrstor_safe(&fpregs->fxsave); in __fpu_restore_sig()
H A Dlegacy.h58 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx)); in fxsave_to_user_sigframe()
103 static inline void fxsave(struct fxregs_state *fx) in fxsave() function
H A Dxstate.c393 fxsave(&init_fpstate.regs.fxsave); in setup_init_fpu_buf()
/linux/arch/x86/um/
H A Dptrace.c28 static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave) in twd_fxsr_to_i387() argument
31 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
40 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i); in twd_fxsr_to_i387()
77 struct user_fxsr_struct *fxsave = (void *)target->thread.regs.regs.fp; in fpregs_legacy_get() local
80 membuf_store(&to, (unsigned long)fxsave->cwd | 0xffff0000ul); in fpregs_legacy_get()
81 membuf_store(&to, (unsigned long)fxsave->swd | 0xffff0000ul); in fpregs_legacy_get()
82 membuf_store(&to, twd_fxsr_to_i387(fxsave)); in fpregs_legacy_get()
83 membuf_store(&to, fxsave->fip); in fpregs_legacy_get()
84 membuf_store(&to, fxsave->fcs | ((unsigned long)fxsave->fop << 16)); in fpregs_legacy_get()
85 membuf_store(&to, fxsave->foo); in fpregs_legacy_get()
[all …]
/linux/arch/x86/include/asm/fpu/
H A Dsignal.h23 extern void convert_to_fxsr(struct fxregs_state *fxsave,
H A Dtypes.h352 struct fxregs_state fxsave; member
/linux/arch/x86/kvm/
H A Dx86.c12125 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local
12132 fxsave = &vcpu->arch.guest_fpu.fpstate->regs.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
12133 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
12134 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
12135 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
12136 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
12137 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
12138 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
12139 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu()
12140 memcpy(fpu->xmm, fxsave->xmm_space, sizeof(fxsave->xmm_space)); in kvm_arch_vcpu_ioctl_get_fpu()
[all …]
/linux/tools/arch/x86/lib/
H A Dx86-opcode-map.txt1256 0: fxsave | RDFSBASE Ry (F3),(11B)