Searched refs:fxsave (Results 1 – 12 of 12) sorted by relevance
| /Linux-v5.15/arch/x86/kernel/fpu/ |
| D | regset.c | 77 return membuf_write(&to, &fpu->state.fxsave, in xfpregs_get() 78 sizeof(fpu->state.fxsave)); in xfpregs_get() 113 memcpy(&fpu->state.fxsave, &newstate, sizeof(newstate)); in xfpregs_set() 116 BUILD_BUG_ON(sizeof(fpu->state.fxsave.xmm_space) != 16 * 16); in xfpregs_set() 117 memset(&fpu->state.fxsave.xmm_space[8], 0, 8 * 16); in xfpregs_set() 201 static inline u32 twd_fxsr_to_i387(struct fxregs_state *fxsave) in twd_fxsr_to_i387() argument 204 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387() 205 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387() 212 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387() 248 struct fxregs_state *fxsave) in __convert_from_fxsr() argument [all …]
|
| D | core.c | 114 fxsave(&fpu->state.fxsave); in save_fpregs_to_fpstate() 147 fxrstor(&fpstate->fxsave); in __restore_fpregs_from_fpstate() 244 fpstate_init_fxstate(&state->fxsave); in fpstate_init() 324 fxrstor(&init_fpstate.fxsave); in restore_fpregs_from_init_fpstate() 471 cwd = fpu->state.fxsave.cwd; in fpu__exception_code() 472 swd = fpu->state.fxsave.swd; in fpu__exception_code() 489 mxcsr = fpu->state.fxsave.mxcsr; in fpu__exception_code()
|
| D | signal.c | 76 fxsave(&tsk->thread.fpu.state.fxsave); in save_fsave_header() 378 if (__copy_from_user(&fpu->state.fxsave, buf_fx, in __fpu_restore_sig() 379 sizeof(fpu->state.fxsave))) in __fpu_restore_sig() 384 if (fpu->state.fxsave.mxcsr & ~mxcsr_feature_mask) in __fpu_restore_sig() 388 fpu->state.fxsave.mxcsr &= mxcsr_feature_mask; in __fpu_restore_sig() 397 convert_to_fxsr(&fpu->state.fxsave, &env); in __fpu_restore_sig() 415 ret = fxrstor_safe(&fpu->state.fxsave); in __fpu_restore_sig()
|
| D | xstate.c | 422 fxsave(&init_fpstate.fxsave); in setup_init_fpu_buf()
|
| /Linux-v5.15/arch/x86/um/ |
| D | signal.c | 37 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-v5.15/arch/x86/include/asm/fpu/ |
| D | signal.h | 25 extern void convert_to_fxsr(struct fxregs_state *fxsave,
|
| D | internal.h | 140 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx)); in fxsave_to_user_sigframe() 185 static inline void fxsave(struct fxregs_state *fx) in fxsave() function
|
| D | types.h | 306 struct fxregs_state fxsave; member
|
| /Linux-v5.15/arch/x86/kvm/ |
| D | x86.c | 4803 &vcpu->arch.guest_fpu->state.fxsave, in kvm_vcpu_ioctl_x86_get_xsave() 4837 memcpy(&vcpu->arch.guest_fpu->state.fxsave, in kvm_vcpu_ioctl_x86_set_xsave() 10571 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local 10578 fxsave = &vcpu->arch.guest_fpu->state.fxsave; in kvm_arch_vcpu_ioctl_get_fpu() 10579 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu() 10580 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu() 10581 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu() 10582 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu() 10583 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu() 10584 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu() [all …]
|
| /Linux-v5.15/arch/x86/lib/ |
| D | x86-opcode-map.txt | 1039 0: fxsave | RDFSBASE Ry (F3),(11B)
|
| /Linux-v5.15/tools/arch/x86/lib/ |
| D | x86-opcode-map.txt | 1039 0: fxsave | RDFSBASE Ry (F3),(11B)
|
| /Linux-v5.15/Documentation/virt/kvm/ |
| D | api.rst | 763 __u8 ftwx; /* in fxsave format */ 792 __u8 ftwx; /* in fxsave format */
|