Lines Matching refs:fxsave
40 &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()
170 static inline u32 twd_fxsr_to_i387(struct fxregs_state *fxsave) in twd_fxsr_to_i387() argument
173 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387()
174 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
181 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387()
218 struct fxregs_state *fxsave = &tsk->thread.fpu.state.fxsave; in convert_from_fxsr() local
220 struct _fpxreg *from = (struct _fpxreg *) &fxsave->st_space[0]; in convert_from_fxsr()
223 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
224 env->swd = fxsave->swd | 0xffff0000u; in convert_from_fxsr()
225 env->twd = twd_fxsr_to_i387(fxsave); in convert_from_fxsr()
228 env->fip = fxsave->rip; in convert_from_fxsr()
229 env->foo = fxsave->rdp; in convert_from_fxsr()
242 env->fip = fxsave->fip; in convert_from_fxsr()
243 env->fcs = (u16) fxsave->fcs | ((u32) fxsave->fop << 16); in convert_from_fxsr()
244 env->foo = fxsave->foo; in convert_from_fxsr()
245 env->fos = fxsave->fos; in convert_from_fxsr()
256 struct fxregs_state *fxsave = &tsk->thread.fpu.state.fxsave; in convert_to_fxsr() local
258 struct _fpxreg *to = (struct _fpxreg *) &fxsave->st_space[0]; in convert_to_fxsr()
261 fxsave->cwd = env->cwd; in convert_to_fxsr()
262 fxsave->swd = env->swd; in convert_to_fxsr()
263 fxsave->twd = twd_i387_to_fxsr(env->twd); in convert_to_fxsr()
264 fxsave->fop = (u16) ((u32) env->fcs >> 16); in convert_to_fxsr()
266 fxsave->rip = env->fip; in convert_to_fxsr()
267 fxsave->rdp = env->foo; in convert_to_fxsr()
270 fxsave->fip = env->fip; in convert_to_fxsr()
271 fxsave->fcs = (env->fcs & 0xffff); in convert_to_fxsr()
272 fxsave->foo = env->foo; in convert_to_fxsr()
273 fxsave->fos = env->fos; in convert_to_fxsr()