Home
last modified time | relevance | path

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

/linux-4.1.27/arch/x86/kernel/
Di387.c246 fx_finit(&fpu->state->fxsave); in fpu_finit()
319 &target->thread.fpu.state->fxsave, 0, -1); in xfpregs_get()
338 &target->thread.fpu.state->fxsave, 0, -1); in xfpregs_set()
343 target->thread.fpu.state->fxsave.mxcsr &= mxcsr_feature_mask; in xfpregs_set()
441 static inline u32 twd_fxsr_to_i387(struct i387_fxsave_struct *fxsave) in twd_fxsr_to_i387() argument
444 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387()
445 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
452 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387()
489 struct i387_fxsave_struct *fxsave = &tsk->thread.fpu.state->fxsave; in convert_from_fxsr() local
491 struct _fpxreg *from = (struct _fpxreg *) &fxsave->st_space[0]; in convert_from_fxsr()
[all …]
Dxsave.c45 struct i387_fxsave_struct *fx = &tsk->thread.fpu.state->fxsave; in __sanitize_i387_state()
/linux-4.1.27/arch/x86/um/
Dsignal.c37 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 …]
/linux-4.1.27/arch/x86/include/asm/
Dfpu-internal.h190 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx)); in fxsave_user()
195 return user_insn(rex64/fxsave (%[fx]), "=m" (*fx), [fx] "R" (fx)); in fxsave_user()
235 asm volatile( "fxsave %[fx]" : [fx] "=m" (fpu->state->fxsave)); in fpu_fxsave()
237 asm volatile("fxsaveq %[fx]" : [fx] "=m" (fpu->state->fxsave)); in fpu_fxsave()
261 : "=m" (fpu->state->fxsave) in fpu_fxsave()
262 : [fx] "R" (&fpu->state->fxsave)); in fpu_fxsave()
296 if (unlikely(fpu->state->fxsave.swd & X87_FSW_ES)) { in fpu_save_init()
313 return fxrstor_checking(&fpu->state->fxsave); in fpu_restore_checking()
548 return tsk->thread.fpu.state->fxsave.cwd; in get_fpu_cwd()
557 return tsk->thread.fpu.state->fxsave.swd; in get_fpu_swd()
[all …]
Dprocessor.h427 struct i387_fxsave_struct fxsave; member
/linux-4.1.27/arch/x86/kvm/
Dx86.c3277 &vcpu->arch.guest_fpu.state->fxsave, in kvm_vcpu_ioctl_x86_get_xsave()
3302 memcpy(&vcpu->arch.guest_fpu.state->fxsave, in kvm_vcpu_ioctl_x86_set_xsave()
6978 struct i387_fxsave_struct *fxsave = in kvm_arch_vcpu_ioctl_get_fpu() local
6979 &vcpu->arch.guest_fpu.state->fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
6981 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
6982 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
6983 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
6984 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
6985 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
6986 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
[all …]
/linux-4.1.27/arch/x86/lib/
Dx86-opcode-map.txt929 0: fxsave | RDFSBASE Ry (F3),(11B)
/linux-4.1.27/Documentation/virtual/kvm/
Dapi.txt570 __u8 ftwx; /* in fxsave format */
596 __u8 ftwx; /* in fxsave format */