fixed typo - invalid CPUID leaf should go to max std leaf

This commit is contained in:
Stanislav Shwartsman 2011-12-28 21:59:39 +00:00
parent 2b854cb101
commit 5da69a6fb4

View File

@ -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;