Lines Matching defs:fpu
371 struct kvm_fpu fpu;
374 memset(&fpu, 0, sizeof fpu);
375 fpu.fsw = env->fpus & ~(7 << 11);
376 fpu.fsw |= (env->fpstt & 7) << 11;
377 fpu.fcw = env->fpuc;
379 fpu.ftwx |= (!env->fptags[i]) << i;
380 memcpy(fpu.fpr, env->fpregs, sizeof env->fpregs);
381 memcpy(fpu.xmm, env->xmm_regs, sizeof env->xmm_regs);
382 fpu.mxcsr = env->mxcsr;
384 return kvm_vcpu_ioctl(env, KVM_SET_FPU, &fpu);
477 struct kvm_fpu fpu;
480 ret = kvm_vcpu_ioctl(env, KVM_GET_FPU, &fpu);
484 env->fpstt = (fpu.fsw >> 11) & 7;
485 env->fpus = fpu.fsw;
486 env->fpuc = fpu.fcw;
488 env->fptags[i] = !((fpu.ftwx >> i) & 1);
489 memcpy(env->fpregs, fpu.fpr, sizeof env->fpregs);
490 memcpy(env->xmm_regs, fpu.xmm, sizeof env->xmm_regs);
491 env->mxcsr = fpu.mxcsr;