This commit is contained in:
Stanislav Shwartsman 2010-03-06 07:00:05 +00:00
parent e5dc6c51a8
commit ef4731ef49

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: cpuid.cc,v 1.103 2010-03-05 20:43:56 sshwarts Exp $
// $Id: cpuid.cc,v 1.104 2010-03-06 07:00:05 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2009 Stanislav Shwartsman
@ -320,8 +320,8 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::CPUID(bxInstruction_c *i)
}
#endif
unsigned max_std_function = BX_CPU_THIS_PTR cpuid_std_function[0].eax - 1;
unsigned max_ext_function = BX_CPU_THIS_PTR cpuid_ext_function[0].eax - 1;
unsigned max_std_function = BX_CPU_THIS_PTR cpuid_std_function[0].eax;
unsigned max_ext_function = BX_CPU_THIS_PTR cpuid_ext_function[0].eax;
if(function < 0x80000000) {
if(function <= max_std_function) {