Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/kernel/fpu/
Dregset.c81 return membuf_write(&to, &fpu->fpstate->regs.fxsave, in xfpregs_get()
82 sizeof(fpu->fpstate->regs.fxsave)); in xfpregs_get()
115 memcpy(&fpu->fpstate->regs.fxsave, &newstate, sizeof(newstate)); in xfpregs_set()
118 BUILD_BUG_ON(sizeof(fpu->__fpstate.regs.fxsave.xmm_space) != 16 * 16); in xfpregs_set()
120 memset(&fpu->fpstate->regs.fxsave.xmm_space[8*4], 0, 8 * 16); in xfpregs_set()
204 static inline u32 twd_fxsr_to_i387(struct fxregs_state *fxsave) in twd_fxsr_to_i387() argument
207 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387()
208 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
215 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387()
251 struct fxregs_state *fxsave) in __convert_from_fxsr() argument
[all …]
Dcore.c124 fxsave(&fpu->fpstate->regs.fxsave); in save_fpregs_to_fpstate()
184 fxrstor(&fpstate->regs.fxsave); in restore_fpregs_from_fpstate()
381 memcpy(&ustate->fxsave, &kstate->regs.fxsave, in fpu_copy_guest_fpstate_to_uabi()
382 sizeof(ustate->fxsave)); in fpu_copy_guest_fpstate_to_uabi()
398 if (ustate->fxsave.mxcsr & ~mxcsr_feature_mask) in fpu_copy_uabi_to_guest_fpstate()
400 memcpy(&kstate->regs.fxsave, &ustate->fxsave, sizeof(ustate->fxsave)); in fpu_copy_uabi_to_guest_fpstate()
483 fpstate->regs.fxsave.cwd = 0x37f; in fpstate_init_fxstate()
484 fpstate->regs.fxsave.mxcsr = MXCSR_DEFAULT; in fpstate_init_fxstate()
667 fxrstor(&init_fpstate.regs.fxsave); in restore_fpregs_from_init_fpstate()
804 cwd = fpu->fpstate->regs.fxsave.cwd; in fpu__exception_code()
[all …]
Dsignal.c78 fxsave(&tsk->thread.fpu.fpstate->regs.fxsave); in save_fsave_header()
402 if (__copy_from_user(&fpregs->fxsave, buf_fx, in __fpu_restore_sig()
403 sizeof(fpregs->fxsave))) in __fpu_restore_sig()
408 if (fpregs->fxsave.mxcsr & ~mxcsr_feature_mask) in __fpu_restore_sig()
412 fpregs->fxsave.mxcsr &= mxcsr_feature_mask; in __fpu_restore_sig()
421 convert_to_fxsr(&fpregs->fxsave, &env); in __fpu_restore_sig()
440 success = !fxrstor_safe(&fpregs->fxsave); in __fpu_restore_sig()
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
Dxstate.c386 fxsave(&init_fpstate.regs.fxsave); in setup_init_fpu_buf()
/linux-6.1.9/arch/x86/um/
Dsignal.c38 static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave) in twd_fxsr_to_i387() argument
41 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
50 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i); in twd_fxsr_to_i387()
84 struct user_fxsr_struct *fxsave) in convert_fxsr_to_user() argument
91 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user()
92 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul; in convert_fxsr_to_user()
93 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user()
94 env[3] = fxsave->fip; in convert_fxsr_to_user()
95 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user()
96 env[5] = fxsave->foo; in convert_fxsr_to_user()
[all …]
/linux-6.1.9/arch/x86/include/asm/fpu/
Dsignal.h30 extern void convert_to_fxsr(struct fxregs_state *fxsave,
Dtypes.h338 struct fxregs_state fxsave; member
/linux-6.1.9/arch/x86/kvm/
Dx86.c11732 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local
11739 fxsave = &vcpu->arch.guest_fpu.fpstate->regs.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
11740 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
11741 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
11742 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
11743 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
11744 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
11745 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
11746 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu()
11747 memcpy(fpu->xmm, fxsave->xmm_space, sizeof(fxsave->xmm_space)); in kvm_arch_vcpu_ioctl_get_fpu()
[all …]
/linux-6.1.9/tools/arch/x86/lib/
Dx86-opcode-map.txt1124 0: fxsave | RDFSBASE Ry (F3),(11B)
/linux-6.1.9/arch/x86/lib/
Dx86-opcode-map.txt1124 0: fxsave | RDFSBASE Ry (F3),(11B)
/linux-6.1.9/Documentation/virt/kvm/
Dapi.rst777 __u8 ftwx; /* in fxsave format */
806 __u8 ftwx; /* in fxsave format */