Fixed warning with cpu-level=3
This commit is contained in:
parent
398a8ef230
commit
1d13084ab8
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: cpuid.cc,v 1.64 2008-02-13 22:42:41 sshwarts Exp $
|
||||
// $Id: cpuid.cc,v 1.65 2008-02-13 22:51:31 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2007 Stanislav Shwartsman
|
||||
@ -255,12 +255,12 @@ Bit32u BX_CPU_C::get_std_cpuid_features()
|
||||
|
||||
void BX_CPU_C::CPUID(bxInstruction_c *i)
|
||||
{
|
||||
#if BX_CPU_LEVEL >= 4
|
||||
Bit32u function = EAX;
|
||||
#if BX_SUPPORT_XSAVE
|
||||
Bit32u subfunction = ECX;
|
||||
#endif
|
||||
|
||||
#if BX_CPU_LEVEL >= 4
|
||||
if(function < 0x80000000) {
|
||||
if(function < MAX_STD_CPUID_FUNCTION) {
|
||||
RAX = BX_CPU_THIS_PTR cpuid_std_function[function].eax;
|
||||
|
Loading…
Reference in New Issue
Block a user