Home
last modified time | relevance | path

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

/linux/arch/x86/um/
H A Dptrace.c29 twd_fxsr_to_i387(const struct user_fxsr_struct *fxsave) in twd_fxsr_to_i387() argument
32 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
41 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i); in twd_fxsr_to_i387()
81 const struct user_fxsr_struct *fxsave) in _um_i387_from_fxsr() argument
85 membuf_store(&to, (unsigned long)fxsave->cwd | 0xffff0000ul); in _um_i387_from_fxsr()
86 membuf_store(&to, (unsigned long)fxsave->swd | 0xffff0000ul); in _um_i387_from_fxsr()
87 membuf_store(&to, twd_fxsr_to_i387(fxsave)); in _um_i387_from_fxsr()
88 membuf_store(&to, fxsave->fip); in _um_i387_from_fxsr()
89 membuf_store(&to, fxsave->fcs | ((unsigned long)fxsave->fop << 16)); in _um_i387_from_fxsr()
90 membuf_store(&to, fxsave->foo); in _um_i387_from_fxsr()
[all …]
/linux/arch/x86/kernel/fpu/
H A Dcore.c150 fxsave(&fpu->fpstate->regs.fxsave); in save_fpregs_to_fpstate()
210 fxrstor(&fpstate->regs.fxsave); in restore_fpregs_from_fpstate()
426 memcpy(&ustate->fxsave, &kstate->regs.fxsave, in fpu_copy_guest_fpstate_to_uabi()
427 sizeof(ustate->fxsave)); in fpu_copy_guest_fpstate_to_uabi()
443 if (ustate->fxsave.mxcsr & ~mxcsr_feature_mask) in fpu_copy_uabi_to_guest_fpstate()
445 memcpy(&kstate->regs.fxsave, &ustate->fxsave, sizeof(ustate->fxsave)); in fpu_copy_uabi_to_guest_fpstate()
539 fpstate->regs.fxsave.cwd = 0x37f; in fpstate_init_fxstate()
540 fpstate->regs.fxsave.mxcsr = MXCSR_DEFAULT; in fpstate_init_fxstate()
797 fxrstor(&init_fpstate.regs.fxsave); in restore_fpregs_from_init_fpstate()
955 cwd = fpu->fpstate->regs.fxsave.cwd; in fpu__exception_code()
[all …]
H A 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
H A Dxstate.c418 fxsave(&init_fpstate.regs.fxsave); in setup_init_fpu_buf()
/linux/arch/x86/include/asm/fpu/
H A Dsignal.h23 extern void convert_to_fxsr(struct fxregs_state *fxsave,
H A Dtypes.h371 struct fxregs_state fxsave; member
/linux/arch/x86/um/os-Linux/
H A Dmcontext.c97 const struct _fpstate_64 *fxsave);
98 int um_fxsr_from_i387(struct _fpstate_64 *fxsave,
/linux/arch/x86/hyperv/
H A Dhv_vtl.c280 fxsave(&vtl0->fx_state); in mshv_vtl_return_call()
/linux/arch/x86/kvm/
H A Dx86.c12606 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local
12613 fxsave = &vcpu->arch.guest_fpu.fpstate->regs.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
12614 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
12615 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
12616 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
12617 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
12618 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
12619 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
12620 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu()
12621 memcpy(fpu->xmm, fxsave->xmm_space, sizeof(fxsave->xmm_space)); in kvm_arch_vcpu_ioctl_get_fpu()
[all …]
/linux/tools/arch/x86/lib/
H A Dx86-opcode-map.txt1339 0: fxsave | RDFSBASE Ry (F3),(11B)
/linux/arch/x86/lib/
H A Dx86-opcode-map.txt1339 0: fxsave | RDFSBASE Ry (F3),(11B)
/linux/Documentation/virt/kvm/
H A Dapi.rst789 __u8 ftwx; /* in fxsave format */
827 __u8 ftwx; /* in fxsave format */