VirtualBox

Changeset 26990 in vbox for trunk/src/VBox/VMM/CPUM.cpp


Ignore:
Timestamp:
Mar 3, 2010 1:57:20 PM (15 years ago)
Author:
vboxsync
Message:

HTT doesn't make sense in single cpu configs

File:
1 edited

Legend:

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

    r26664 r26990  
    568568        /* If CPUID Fn0000_0001_EDX[HTT] = 1 then LogicalProcessorCount is the number of threads per CPU core times the number of CPU cores per processor */
    569569        pCPUM->aGuestCpuIdStd[1].ebx |= (pVM->cCpus << 16);
    570         pCPUM->aGuestCpuIdStd[1].edx |= X86_CPUID_FEATURE_EDX_HTT;  /* necessary for hyper-threading *or* multi-core CPUs */
     570        if (pVM->cCpus > 1)
     571            pCPUM->aGuestCpuIdStd[1].edx |= X86_CPUID_FEATURE_EDX_HTT;  /* necessary for hyper-threading *or* multi-core CPUs */
    571572    }
    572573#endif
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