Searched refs:fxsave (Results 1 – 6 of 6) sorted by relevance
/arch/x86/kernel/ |
D | i387.c | 146 struct i387_fxsave_struct *fx = &tsk->thread.xstate->fxsave; in init_fpu() 191 &target->thread.xstate->fxsave, 0, -1); in xfpregs_get() 210 &target->thread.xstate->fxsave, 0, -1); in xfpregs_set() 215 target->thread.xstate->fxsave.mxcsr &= mxcsr_feature_mask; in xfpregs_set() 254 static inline u32 twd_fxsr_to_i387(struct i387_fxsave_struct *fxsave) in twd_fxsr_to_i387() argument 257 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387() 258 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 265 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387() 302 struct i387_fxsave_struct *fxsave = &tsk->thread.xstate->fxsave; in convert_from_fxsr() local 304 struct _fpxreg *from = (struct _fpxreg *) &fxsave->st_space[0]; in convert_from_fxsr() [all …]
|
D | xsave.c | 112 if (__copy_to_user(buf, &tsk->thread.xstate->fxsave, in save_i387_xstate()
|
/arch/x86/include/asm/ |
D | i387.h | 83 return fxrstor_checking(&tsk->thread.xstate->fxsave); in restore_fpu_checking() 94 struct i387_fxsave_struct *fx = &tsk->thread.xstate->fxsave; in clear_fpu_state() 135 static inline void fxsave(struct task_struct *tsk) in fxsave() function 145 : "=m" (tsk->thread.xstate->fxsave)); in fxsave() 152 : "=m" (tsk->thread.xstate->fxsave)); in fxsave() 157 : "=m" (tsk->thread.xstate->fxsave) in fxsave() 158 : "cdaSDb" (&tsk->thread.xstate->fxsave)); in fxsave() 167 fxsave(tsk); in __save_init_fpu() 202 "m" (tsk->thread.xstate->fxsave)); in restore_fpu() 221 struct i387_fxsave_struct *fx = &tsk->thread.xstate->fxsave; in __save_init_fpu() [all …]
|
D | processor.h | 374 struct i387_fxsave_struct fxsave; member
|
/arch/um/sys-i386/ |
D | signal.c | 53 static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave) in twd_fxsr_to_i387() argument 56 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 65 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i); in twd_fxsr_to_i387() 99 struct user_fxsr_struct *fxsave) in convert_fxsr_to_user() argument 106 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user() 107 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul; in convert_fxsr_to_user() 108 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user() 109 env[3] = fxsave->fip; in convert_fxsr_to_user() 110 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user() 111 env[5] = fxsave->foo; in convert_fxsr_to_user() [all …]
|
/arch/x86/kvm/ |
D | x86.c | 3832 struct fxsave { struct 3873 struct fxsave *fxsave = (struct fxsave *)&vcpu->arch.guest_fx_image; in kvm_arch_vcpu_ioctl_get_fpu() local 3877 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu() 3878 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu() 3879 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu() 3880 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu() 3881 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu() 3882 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu() 3883 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu() 3884 memcpy(fpu->xmm, fxsave->xmm_space, sizeof fxsave->xmm_space); in kvm_arch_vcpu_ioctl_get_fpu() [all …]
|