Integrated CPUID CMPXCHG8B bit setting patch from John_Bäckstrand.
Moved it slightly, but it is correct.
This commit is contained in:
parent
bee72cf17b
commit
f99f17bca4
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: proc_ctrl.cc,v 1.52 2002-09-28 00:54:05 kevinlawton Exp $
|
||||
// $Id: proc_ctrl.cc,v 1.53 2002-09-29 16:23:03 kevinlawton Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -1452,6 +1452,11 @@ BX_CPU_C::CPUID(bxInstruction_c *i)
|
||||
features |= (1<<6); // Support PAE.
|
||||
#endif
|
||||
|
||||
#if (BX_CPU_LEVEL >= 5)
|
||||
features |= (1<<8); //Support CMPXCHG8B instruction
|
||||
#endif
|
||||
|
||||
|
||||
RAX = (family <<8) | (model<<4) | stepping;
|
||||
RBX = RCX = 0; // reserved
|
||||
RDX = features;
|
||||
|
Loading…
Reference in New Issue
Block a user