VirtualBox

Changeset 24728 in vbox for trunk


Ignore:
Timestamp:
Nov 17, 2009 4:04:45 PM (15 years ago)
Author:
vboxsync
Message:

CPUM: report L1 cache as data, and provide reasonable linesize

File:
1 edited

Legend:

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

    r23794 r24728  
    10841084        &&  pVM->cpum.s.enmGuestCpuVendor == CPUMCPUVENDOR_INTEL)
    10851085    {
    1086         /* Report unified L0 cache, Linux'es num_cpu_cores() requires
     1086        /* Report L0 data cache, Linux'es num_cpu_cores() requires
    10871087         * that to be non-0 to detect core count correctly. */
    1088         *pEax |= (1 << 5) | 3;
     1088        *pEax |= (1 << 5) /* level 1 */ | 1 /* 1 - data cache, 2 - i-cache, 3 - unified */ ;
     1089        *pEbx = 63 /* linesize 64 */ ;
    10891090    }
    10901091
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