Fix Windows 11 boot, #280 (partial revert of b24bf1d) (#285)

This commit is contained in:
Vort 2024-03-15 18:02:07 +02:00 committed by GitHub
parent 4b0c9a711f
commit c2891e5ff6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,8 +87,8 @@ BX_CPP_INLINE static Bit32u ilog2(Bit32u x)
void bx_cpuid_t::get_std_cpuid_extended_topology_leaf(Bit32u subfunction, cpuid_function_t *leaf) const
{
// CPUID function 0x0000000B - Extended Topology Leaf
leaf->eax = (subfunction == 0);
leaf->ebx = (subfunction == 0); // number of logical CPUs at this level
leaf->eax = 0;
leaf->ebx = 0;
leaf->ecx = subfunction;
leaf->edx = cpu->get_apic_id();