VirtualBox

Changeset 7646 in vbox


Ignore:
Timestamp:
Mar 31, 2008 11:10:27 AM (17 years ago)
Author:
vboxsync
Message:

Extra check for valid cpuid

File:
1 edited

Legend:

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

    r7645 r7646  
    10481048        case CPUMCPUIDFEATURE_LONG_MODE:
    10491049        {
    1050             uint32_t ulEdx, ulDummy;
     1050            uint32_t ulEdx , ulDummy;
    10511051
    10521052            ASMCpuId(0x80000001, &ulDummy, &ulDummy, &ulDummy, &ulEdx);
    1053             if (!(ulEdx & X86_CPUID_AMD_FEATURE_EDX_LONG_MODE))
     1053            if (    pVM->cpum.s.aGuestCpuIdExt[0].eax < 0x80000001
     1054                ||  !(ulEdx & X86_CPUID_AMD_FEATURE_EDX_LONG_MODE))
    10541055            {
    10551056                AssertMsgFailed(("ERROR: Can't turn on LONG MODE when the host doesn't support it!!\n"));
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