Lines Matching refs:fxsave

246 		fx_finit(&fpu->state->fxsave);  in fpu_finit()
319 &target->thread.fpu.state->fxsave, 0, -1); in xfpregs_get()
338 &target->thread.fpu.state->fxsave, 0, -1); in xfpregs_set()
343 target->thread.fpu.state->fxsave.mxcsr &= mxcsr_feature_mask; in xfpregs_set()
441 static inline u32 twd_fxsr_to_i387(struct i387_fxsave_struct *fxsave) in twd_fxsr_to_i387() argument
444 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387()
445 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
452 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387()
489 struct i387_fxsave_struct *fxsave = &tsk->thread.fpu.state->fxsave; in convert_from_fxsr() local
491 struct _fpxreg *from = (struct _fpxreg *) &fxsave->st_space[0]; in convert_from_fxsr()
494 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
495 env->swd = fxsave->swd | 0xffff0000u; in convert_from_fxsr()
496 env->twd = twd_fxsr_to_i387(fxsave); in convert_from_fxsr()
499 env->fip = fxsave->rip; in convert_from_fxsr()
500 env->foo = fxsave->rdp; in convert_from_fxsr()
513 env->fip = fxsave->fip; in convert_from_fxsr()
514 env->fcs = (u16) fxsave->fcs | ((u32) fxsave->fop << 16); in convert_from_fxsr()
515 env->foo = fxsave->foo; in convert_from_fxsr()
516 env->fos = fxsave->fos; in convert_from_fxsr()
527 struct i387_fxsave_struct *fxsave = &tsk->thread.fpu.state->fxsave; in convert_to_fxsr() local
529 struct _fpxreg *to = (struct _fpxreg *) &fxsave->st_space[0]; in convert_to_fxsr()
532 fxsave->cwd = env->cwd; in convert_to_fxsr()
533 fxsave->swd = env->swd; in convert_to_fxsr()
534 fxsave->twd = twd_i387_to_fxsr(env->twd); in convert_to_fxsr()
535 fxsave->fop = (u16) ((u32) env->fcs >> 16); in convert_to_fxsr()
537 fxsave->rip = env->fip; in convert_to_fxsr()
538 fxsave->rdp = env->foo; in convert_to_fxsr()
541 fxsave->fip = env->fip; in convert_to_fxsr()
542 fxsave->fcs = (env->fcs & 0xffff); in convert_to_fxsr()
543 fxsave->foo = env->foo; in convert_to_fxsr()
544 fxsave->fos = env->fos; in convert_to_fxsr()