VirtualBox

Changeset 7648 in vbox for trunk/src


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

Use ASMCpuId_EDX.

File:
1 edited

Legend:

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

    r7647 r7648  
    10451045        case CPUMCPUIDFEATURE_LONG_MODE:
    10461046        {
    1047             uint32_t ulEdx , ulDummy;
    1048 
    1049             ASMCpuId(0x80000001, &ulDummy, &ulDummy, &ulDummy, &ulEdx);
    10501047            if (    pVM->cpum.s.aGuestCpuIdExt[0].eax < 0x80000001
    1051                 ||  !(ulEdx & X86_CPUID_AMD_FEATURE_EDX_LONG_MODE))
     1048                ||  !(ASMCpuId_EDX(0x80000001) & X86_CPUID_AMD_FEATURE_EDX_LONG_MODE))
    10521049            {
    10531050                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