VirtualBox

Changeset 54898 in vbox for trunk/src/recompiler


Ignore:
Timestamp:
Mar 22, 2015 11:47:07 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99113
Message:

CPUMCTX,CPUMHOST: Replaced the fpu (X86FXSAVE) member with an XState (X86XSAVEAREA) member.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r54737 r54898  
    23522352        /* Sync FPU state after CR4, CPUID and EFER (!). */
    23532353        if (fFlags & CPUM_CHANGED_FPU_REM)
    2354             save_raw_fp_state(&pVM->rem.s.Env, (uint8_t *)&pCtx->fpu); /* 'save' is an excellent name. */
     2354            save_raw_fp_state(&pVM->rem.s.Env, (uint8_t *)&pCtx->XState.x87); /* 'save' is an excellent name. */
    23552355    }
    23562356
     
    25452545
    25462546    /** @todo check if FPU/XMM was actually used in the recompiler */
    2547     restore_raw_fp_state(&pVM->rem.s.Env, (uint8_t *)&pCtx->fpu);
     2547    restore_raw_fp_state(&pVM->rem.s.Env, (uint8_t *)&pCtx->XState.x87);
    25482548////    dprintf2(("FPU state CW=%04X TT=%04X SW=%04X (%04X)\n", env->fpuc, env->fpstt, env->fpus, pVMCtx->fpu.FSW));
    25492549
     
    28162816    /** @todo DS */
    28172817    /** @todo Fix MXCSR support in QEMU so we don't overwrite MXCSR with 0 when we shouldn't! */
    2818     pCtx->fpu.MXCSR         = 0;
    2819     pCtx->fpu.MXCSR_MASK    = 0;
     2818    pCtx->XState.x87.MXCSR       = 0;
     2819    pCtx->XState.x87.MXCSR_MASK  = 0;
    28202820
    28212821    /** @todo check if FPU/XMM was actually used in the recompiler */
    2822     restore_raw_fp_state(&pVM->rem.s.Env, (uint8_t *)&pCtx->fpu);
     2822    restore_raw_fp_state(&pVM->rem.s.Env, (uint8_t *)&pCtx->XState.x87);
    28232823////    dprintf2(("FPU state CW=%04X TT=%04X SW=%04X (%04X)\n", env->fpuc, env->fpstt, env->fpus, pVMCtx->fpu.FSW));
    28242824
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette