fixed typo - invalid CPUID leaf should go to max std leaf
This commit is contained in:
parent
2b854cb101
commit
5da69a6fb4
@ -79,7 +79,7 @@ void bx_generic_cpuid_t::get_cpuid_leaf(Bit32u function, Bit32u subfunction, cpu
|
||||
|
||||
#if BX_CPU_LEVEL >= 6
|
||||
if (function >= 0x80000000 && function > max_ext_leaf)
|
||||
function = max_ext_leaf;
|
||||
function = max_std_leaf;
|
||||
#endif
|
||||
if (function < 0x80000000 && function > max_std_leaf)
|
||||
function = max_std_leaf;
|
||||
|
Loading…
Reference in New Issue
Block a user