VirtualBox

Changeset 21353 in vbox


Ignore:
Timestamp:
Jul 7, 2009 3:59:53 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49702
Message:

CPUID: correct core count encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r21350 r21353  
    427427        AssertReturn(pVM->cCPUs <= 64, VERR_TOO_MANY_CPUS);
    428428        /* One logical processor with possibly multiple cores. */
    429         pCPUM->aGuestCpuIdStd[4].eax |= (pVM->cCPUs << 26);   /* 6 bits only -> 64 cores! */
     429        /* See  http://www.intel.com/Assets/PDF/appnote/241618.pdf p. 29 */
     430        pCPUM->aGuestCpuIdStd[4].eax |= ((pVM->cCPUs - 1) << 26);   /* 6 bits only -> 64 cores! */
    430431    }
    431432#endif
Note: See TracChangeset for help on using the changeset viewer.

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