VirtualBox

Changeset 55105 in vbox


Ignore:
Timestamp:
Apr 6, 2015 7:18:50 PM (9 years ago)
Author:
vboxsync
Message:

Removed iemFRegIsFxSaveFormat.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r55048 r55105  
    46294629{
    46304630    return *(uint64_t *)iemGRegRef(pIemCpu, iReg);
    4631 }
    4632 
    4633 
    4634 /**
    4635  * Is the FPU state in FXSAVE format or not.
    4636  *
    4637  * @returns true if it is, false if it's in FNSAVE.
    4638  * @param   pVCpu               Pointer to the VMCPU.
    4639  */
    4640 DECLINLINE(bool) iemFRegIsFxSaveFormat(PIEMCPU pIemCpu)
    4641 {
    4642 #ifdef RT_ARCH_AMD64
    4643     NOREF(pIemCpu);
    4644     return true;
    4645 #else
    4646     NOREF(pIemCpu); /// @todo return pVCpu->pVMR3->cpum.s.CPUFeatures.edx.u1FXSR;
    4647     return true;
    4648 #endif
    46494631}
    46504632
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h

    r55048 r55105  
    60446044
    60456045    PX86XSAVEAREA pXState = pCtx->CTX_SUFF(pXState);
    6046     if (iemFRegIsFxSaveFormat(pIemCpu))
    6047     {
    6048         pXState->x87.FCW   = 0x37f;
    6049         pXState->x87.FSW   = 0;
    6050         pXState->x87.FTW   = 0x00;         /* 0 - empty. */
    6051         pXState->x87.FPUDP = 0;
    6052         pXState->x87.DS    = 0; //??
    6053         pXState->x87.Rsrvd2= 0;
    6054         pXState->x87.FPUIP = 0;
    6055         pXState->x87.CS    = 0; //??
    6056         pXState->x87.Rsrvd1= 0;
    6057         pXState->x87.FOP   = 0;
    6058     }
    6059     else
    6060     {
    6061         PX86FPUSTATE pFpu = (PX86FPUSTATE)&pXState->x87;
    6062         pFpu->FCW       = 0x37f;
    6063         pFpu->FSW       = 0;
    6064         pFpu->FTW       = 0xffff;       /* 11 - empty */
    6065         pFpu->FPUOO     = 0; //??
    6066         pFpu->FPUOS     = 0; //??
    6067         pFpu->FPUIP     = 0;
    6068         pFpu->CS        = 0; //??
    6069         pFpu->FOP       = 0;
    6070     }
     6046    pXState->x87.FCW   = 0x37f;
     6047    pXState->x87.FSW   = 0;
     6048    pXState->x87.FTW   = 0x00;         /* 0 - empty. */
     6049    pXState->x87.FPUDP = 0;
     6050    pXState->x87.DS    = 0; //??
     6051    pXState->x87.Rsrvd2= 0;
     6052    pXState->x87.FPUIP = 0;
     6053    pXState->x87.CS    = 0; //??
     6054    pXState->x87.Rsrvd1= 0;
     6055    pXState->x87.FOP   = 0;
    60716056
    60726057    iemHlpUsedFpu(pIemCpu);
     
    61046089        return iemRaiseGeneralProtectionFault0(pIemCpu);
    61056090    }
    6106     AssertReturn(iemFRegIsFxSaveFormat(pIemCpu), VERR_IEM_IPE_2);
    61076091
    61086092    /*
     
    62096193        return iemRaiseGeneralProtectionFault0(pIemCpu);
    62106194    }
    6211     AssertReturn(iemFRegIsFxSaveFormat(pIemCpu), VERR_IEM_IPE_2);
    62126195
    62136196    /*
Note: See TracChangeset for help on using the changeset viewer.

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