Home
last modified time | relevance | path

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

/linux-4.4.14/arch/x86/kernel/fpu/
Dregset.c40 &fpu->state.fxsave, 0, -1); in xfpregs_get()
57 &fpu->state.fxsave, 0, -1); in xfpregs_set()
62 fpu->state.fxsave.mxcsr &= mxcsr_feature_mask; in xfpregs_set()
159 static inline u32 twd_fxsr_to_i387(struct fxregs_state *fxsave) in twd_fxsr_to_i387() argument
162 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387()
163 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
170 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387()
207 struct fxregs_state *fxsave = &tsk->thread.fpu.state.fxsave; in convert_from_fxsr() local
209 struct _fpxreg *from = (struct _fpxreg *) &fxsave->st_space[0]; in convert_from_fxsr()
212 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
[all …]
Dcore.c220 fpstate_init_fxstate(&state->fxsave); in fpstate_init()
413 copy_kernel_to_fxregs(&init_fpstate.fxsave); in copy_init_fpstate_to_fpregs()
445 return fpu->state.fxsave.cwd; in get_fpu_cwd()
454 return fpu->state.fxsave.swd; in get_fpu_swd()
463 return fpu->state.fxsave.mxcsr; in get_fpu_mxcsr()
Dinit.c132 fpstate_init_fxstate(&init_fpstate.fxsave); in fpu__init_system_generic()
Dxstate.c112 struct fxregs_state *fx = &fpu->state.fxsave; in fpstate_sanitize_xstate()
/linux-4.4.14/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.4.14/arch/x86/include/asm/fpu/
Dinternal.h136 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx)); in copy_fxregs_to_user()
141 return user_insn(rex64/fxsave (%[fx]), "=m" (*fx), [fx] "R" (fx)); in copy_fxregs_to_user()
189 asm volatile( "fxsave %[fx]" : [fx] "=m" (fpu->state.fxsave)); in copy_fxregs_to_kernel()
191 asm volatile("fxsaveq %[fx]" : [fx] "=m" (fpu->state.fxsave)); in copy_fxregs_to_kernel()
215 : "=m" (fpu->state.fxsave) in copy_fxregs_to_kernel()
216 : [fx] "R" (&fpu->state.fxsave)); in copy_fxregs_to_kernel()
456 copy_kernel_to_fxregs(&fpstate->fxsave); in __copy_kernel_to_fpregs()
Dtypes.h247 struct fxregs_state fxsave; member
/linux-4.4.14/arch/x86/kvm/
Dx86.c3116 &vcpu->arch.guest_fpu.state.fxsave, in kvm_vcpu_ioctl_x86_get_xsave()
3141 memcpy(&vcpu->arch.guest_fpu.state.fxsave, in kvm_vcpu_ioctl_x86_set_xsave()
7167 struct fxregs_state *fxsave = in kvm_arch_vcpu_ioctl_get_fpu() local
7168 &vcpu->arch.guest_fpu.state.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
7170 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
7171 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
7172 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
7173 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
7174 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
7175 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
[all …]
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dx86-opcode-map.txt943 0: fxsave | RDFSBASE Ry (F3),(11B)
/linux-4.4.14/arch/x86/lib/
Dx86-opcode-map.txt943 0: fxsave | RDFSBASE Ry (F3),(11B)
/linux-4.4.14/Documentation/virtual/kvm/
Dapi.txt581 __u8 ftwx; /* in fxsave format */
607 __u8 ftwx; /* in fxsave format */