VirtualBox

Changeset 55062 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Apr 1, 2015 12:45:12 AM (10 years ago)
Author:
vboxsync
Message:

Remove CPUFeatures and CPUFeaturesExt from CPUM, use HostFeatures instead. Extended HostFeatures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp

    r55048 r55062  
    339339VMMR0_INT_DECL(int) CPUMR0Trap07Handler(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    340340{
    341     Assert(pVM->cpum.s.CPUFeatures.edx.u1FXSR);
     341    Assert(pVM->cpum.s.HostFeatures.fFxSaveRstor);
    342342    Assert(ASMGetCR4() & X86_CR4_OSFXSR);
    343343
     
    399399VMMR0_INT_DECL(int) CPUMR0LoadGuestFPU(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    400400{
    401 
    402401    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    403402#if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
     
    423422        uint64_t uHostEfer    = 0;
    424423        bool     fRestoreEfer = false;
    425         if (pVM->cpum.s.CPUFeaturesExt.edx & X86_CPUID_AMD_FEATURE_EDX_FFXSR)
     424        if (pVM->cpum.s.HostFeatures.fLeakyFxSR)
    426425        {
    427426            /** @todo r=ramshankar: Can't we used a cached value here
     
    460459VMMR0_INT_DECL(int) CPUMR0SaveGuestFPU(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    461460{
    462     Assert(pVM->cpum.s.CPUFeatures.edx.u1FXSR);
     461    Assert(pVM->cpum.s.HostFeatures.fFxSaveRstor);
    463462    Assert(ASMGetCR4() & X86_CR4_OSFXSR);
    464463    AssertReturn((pVCpu->cpum.s.fUseFlags & CPUM_USED_FPU), VINF_SUCCESS);
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