Searched refs:fxsave (Results 1 – 9 of 9) sorted by relevance
/linux/arch/x86/kernel/fpu/ |
H A D | regset.c | 82 return membuf_write(&to, &fpu->fpstate->regs.fxsave, in xfpregs_get() 83 sizeof(fpu->fpstate->regs.fxsave)); in xfpregs_get() 116 memcpy(&fpu->fpstate->regs.fxsave, &newstate, sizeof(newstate)); in xfpregs_set() 119 BUILD_BUG_ON(sizeof(fpu->__fpstate.regs.fxsave.xmm_space) != 16 * 16); in xfpregs_set() 121 memset(&fpu->fpstate->regs.fxsave.xmm_space[8*4], 0, 8 * 16); in xfpregs_set() 285 static inline u32 twd_fxsr_to_i387(struct fxregs_state *fxsave) in twd_fxsr_to_i387() argument 288 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387() 289 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 296 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387() 332 struct fxregs_state *fxsave) in __convert_from_fxsr() argument [all …]
|
H A D | core.c | 124 fxsave(&fpu->fpstate->regs.fxsave); in save_fpregs_to_fpstate() 184 fxrstor(&fpstate->regs.fxsave); in restore_fpregs_from_fpstate() 382 memcpy(&ustate->fxsave, &kstate->regs.fxsave, in fpu_copy_guest_fpstate_to_uabi() 383 sizeof(ustate->fxsave)); in fpu_copy_guest_fpstate_to_uabi() 399 if (ustate->fxsave.mxcsr & ~mxcsr_feature_mask) in fpu_copy_uabi_to_guest_fpstate() 401 memcpy(&kstate->regs.fxsave, &ustate->fxsave, sizeof(ustate->fxsave)); in fpu_copy_uabi_to_guest_fpstate() 484 fpstate->regs.fxsave.cwd = 0x37f; in fpstate_init_fxstate() 485 fpstate->regs.fxsave.mxcsr = MXCSR_DEFAULT; in fpstate_init_fxstate() 702 fxrstor(&init_fpstate.regs.fxsave); in restore_fpregs_from_init_fpstate() 857 cwd = fpu->fpstate->regs.fxsave.cwd; in fpu__exception_code() [all …]
|
H A D | signal.c | 88 fxsave(&tsk->thread.fpu.fpstate->regs.fxsave); in save_fsave_header() 416 if (__copy_from_user(&fpregs->fxsave, buf_fx, in __fpu_restore_sig() 417 sizeof(fpregs->fxsave))) in __fpu_restore_sig() 422 if (fpregs->fxsave.mxcsr & ~mxcsr_feature_mask) in __fpu_restore_sig() 426 fpregs->fxsave.mxcsr &= mxcsr_feature_mask; in __fpu_restore_sig() 435 convert_to_fxsr(&fpregs->fxsave, &env); in __fpu_restore_sig() 454 success = !fxrstor_safe(&fpregs->fxsave); in __fpu_restore_sig()
|
H A D | legacy.h | 58 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 D | xstate.c | 393 fxsave(&init_fpstate.regs.fxsave); in setup_init_fpu_buf()
|
/linux/arch/x86/include/asm/fpu/ |
H A D | signal.h | 23 extern void convert_to_fxsr(struct fxregs_state *fxsave,
|
H A D | types.h | 352 struct fxregs_state fxsave; member
|
/linux/arch/x86/kvm/ |
H A D | x86.c | 12143 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local 12150 fxsave = &vcpu->arch.guest_fpu.fpstate->regs.fxsave; in kvm_arch_vcpu_ioctl_get_fpu() 12151 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu() 12152 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu() 12153 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu() 12154 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu() 12155 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu() 12156 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu() 12157 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu() 12158 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 D | x86-opcode-map.txt | 1256 0: fxsave | RDFSBASE Ry (F3),(11B)
|