Searched refs:fxsave (Results 1 – 7 of 7) sorted by relevance
/arch/x86/kernel/ |
D | i387.c | 208 struct i387_fxsave_struct *fx = &fpu->state->fxsave; in fpu_finit() 287 &target->thread.fpu.state->fxsave, 0, -1); in xfpregs_get() 306 &target->thread.fpu.state->fxsave, 0, -1); in xfpregs_set() 311 target->thread.fpu.state->fxsave.mxcsr &= mxcsr_feature_mask; in xfpregs_set() 341 memcpy(&target->thread.fpu.state->fxsave.sw_reserved, in xstateregs_get() 372 target->thread.fpu.state->fxsave.mxcsr &= mxcsr_feature_mask; in xstateregs_set() 412 static inline u32 twd_fxsr_to_i387(struct i387_fxsave_struct *fxsave) in twd_fxsr_to_i387() argument 415 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387() 416 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 423 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387() [all …]
|
D | xsave.c | 46 struct i387_fxsave_struct *fx = &tsk->thread.fpu.state->fxsave; in __sanitize_i387_state() 183 if (__copy_to_user(buf, &tsk->thread.fpu.state->fxsave, in save_i387_xstate()
|
/arch/x86/um/ |
D | signal.c | 37 static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave) in twd_fxsr_to_i387() argument 40 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 49 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i); in twd_fxsr_to_i387() 83 struct user_fxsr_struct *fxsave) in convert_fxsr_to_user() argument 90 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user() 91 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul; in convert_fxsr_to_user() 92 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user() 93 env[3] = fxsave->fip; in convert_fxsr_to_user() 94 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user() 95 env[5] = fxsave->foo; in convert_fxsr_to_user() [all …]
|
/arch/x86/include/asm/ |
D | fpu-internal.h | 167 : "=m" (fpu->state->fxsave)); in fpu_fxsave() 178 : "=m" (fpu->state->fxsave) in fpu_fxsave() 179 : [fx] "R" (&fpu->state->fxsave)); in fpu_fxsave() 204 : [fx] "=m" (fpu->state->fxsave)); in fpu_fxsave() 239 if (unlikely(fpu->state->fxsave.swd & X87_FSW_ES)) { in fpu_save_init() 253 return fxrstor_checking(&fpu->state->fxsave); in fpu_fxrstor_checking() 468 return tsk->thread.fpu.state->fxsave.cwd; in get_fpu_cwd() 477 return tsk->thread.fpu.state->fxsave.swd; in get_fpu_swd() 486 return tsk->thread.fpu.state->fxsave.mxcsr; in get_fpu_mxcsr()
|
D | processor.h | 381 struct i387_fxsave_struct fxsave; member
|
/arch/x86/kvm/ |
D | x86.c | 2529 &vcpu->arch.guest_fpu.state->fxsave, in kvm_vcpu_ioctl_x86_get_xsave() 2548 memcpy(&vcpu->arch.guest_fpu.state->fxsave, in kvm_vcpu_ioctl_x86_set_xsave() 5841 struct i387_fxsave_struct *fxsave = in kvm_arch_vcpu_ioctl_get_fpu() local 5842 &vcpu->arch.guest_fpu.state->fxsave; in kvm_arch_vcpu_ioctl_get_fpu() 5844 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu() 5845 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu() 5846 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu() 5847 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu() 5848 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu() 5849 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu() [all …]
|
/arch/x86/lib/ |
D | x86-opcode-map.txt | 914 0: fxsave | RDFSBASE Ry (F3),(11B)
|