VirtualBox

Changeset 54818 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 17, 2015 5:50:15 PM (10 years ago)
Author:
vboxsync
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp

    r54815 r54818  
    43724372                        "         %s\n"
    43734373                        "     Leaf/sub-leaf  eax      ebx      ecx      edx\n", pszTitle);
    4374         while (   pCurLeaf - paLeaves < cLeaves
     4374        while (   (uintptr_t)(pCurLeaf - paLeaves) < cLeaves
    43754375               && pCurLeaf->uLeaf <= uUpToLeaf)
    43764376        {
     
    44394439        {
    44404440            ASMCpuIdExSlow(uLeaf, 0, uSubLeaf, 0, &Host.uEax, &Host.uEbx, &Host.uEcx, &Host.uEdx);
    4441             if (   pCurLeaf - paLeaves < cLeaves
     4441            if (   (uintptr_t)(pCurLeaf - paLeaves) < cLeaves
    44424442                && pCurLeaf->uLeaf    == uLeaf
    44434443                && pCurLeaf->uSubLeaf == uSubLeaf)
     
    44584458
    44594459            /* Done? */
    4460             if (   (   pCurLeaf - paLeaves >= cLeaves
     4460            if (   (   (uintptr_t)(pCurLeaf - paLeaves) >= cLeaves
    44614461                    || pCurLeaf->uLeaf != uLeaf)
    44624462                && (   (uLeaf == 0x4 && ((Host.uEax & 0x000f) == 0 || (Host.uEax & 0x000f) >= 8))
     
    46874687    ASMCpuIdExSlow(UINT32_C(0x40000000), 0, 0, 0, &Host.uEax, &Host.uEbx, &Host.uEcx, &Host.uEdx);
    46884688    cHstMax  = Host.uEax >= UINT32_C(0x40000001) && Host.uEax <= UINT32_C(0x40000fff) ? Host.uEax : 0;
    4689     cGstMax  = pCurLeaf - paLeaves < cLeaves && pCurLeaf->uLeaf == UINT32_C(0x40000000)
     4689    cGstMax  = (uintptr_t)(pCurLeaf - paLeaves) < cLeaves && pCurLeaf->uLeaf == UINT32_C(0x40000000)
    46904690             ? RT_MIN(pCurLeaf->uEax, UINT32_C(0x40000fff)) : 0;
    46914691    cMax     = RT_MAX(cHstMax, cGstMax);
     
    47084708    ASMCpuIdExSlow(UINT32_C(0x80000000), 0, 0, 0, &Host.uEax, &Host.uEbx, &Host.uEcx, &Host.uEdx);
    47094709    cHstMax  = ASMIsValidExtRange(Host.uEax) ? RT_MIN(Host.uEax, UINT32_C(0x80000fff)) : 0;
    4710     cGstMax  = pCurLeaf - paLeaves < cLeaves && pCurLeaf->uLeaf == UINT32_C(0x80000000)
     4710    cGstMax  = (uintptr_t)(pCurLeaf - paLeaves) < cLeaves && pCurLeaf->uLeaf == UINT32_C(0x80000000)
    47114711             ? RT_MIN(pCurLeaf->uEax, UINT32_C(0x80000fff)) : 0;
    47124712    cMax     = RT_MAX(cHstMax, cGstMax);
     
    47274727            {
    47284728                ASMCpuIdExSlow(uLeaf, 0, uSubLeaf, 0, &Host.uEax, &Host.uEbx, &Host.uEcx, &Host.uEdx);
    4729                 if (   pCurLeaf - paLeaves < cLeaves
     4729                if (   (uintptr_t)(pCurLeaf - paLeaves) < cLeaves
    47304730                    && pCurLeaf->uLeaf    == uLeaf
    47314731                    && pCurLeaf->uSubLeaf == uSubLeaf)
     
    47464746
    47474747                /* Done? */
    4748                 if (   (   pCurLeaf - paLeaves >= cLeaves
     4748                if (   (   (uintptr_t)(pCurLeaf - paLeaves) >= cLeaves
    47494749                        || pCurLeaf->uLeaf != uLeaf)
    47504750                    && (uLeaf == UINT32_C(0x8000001d) && ((Host.uEax & 0x000f) == 0 || (Host.uEax & 0x000f) >= 8)) )
     
    50475047    cHstMax  = Host.uEax >= UINT32_C(0xc0000001) && Host.uEax <= UINT32_C(0xc0000fff)
    50485048             ? RT_MIN(Host.uEax,      UINT32_C(0xc0000fff)) : 0;
    5049     cGstMax  = pCurLeaf - paLeaves < cLeaves && pCurLeaf->uLeaf == UINT32_C(0xc0000000)
     5049    cGstMax  = (uintptr_t)(pCurLeaf - paLeaves) < cLeaves && pCurLeaf->uLeaf == UINT32_C(0xc0000000)
    50505050             ? RT_MIN(pCurLeaf->uEax, UINT32_C(0xc0000fff)) : 0;
    50515051    cMax     = RT_MAX(cHstMax, cGstMax);
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