common: ifdef x64 specific code

gcc warning:  set but unused
This commit is contained in:
Gregory Hainaut 2015-11-06 23:18:03 +01:00
parent 2a850cd5ad
commit 4bfb60865c
1 changed files with 6 additions and 0 deletions

View File

@ -197,8 +197,10 @@ void x86capabilities::Identify()
u32 cmds;
//AMD 64 STUFF
#ifdef __x86_64__
u32 x86_64_8BITBRANDID;
u32 x86_64_12BITBRANDID;
#endif
memzero( VendorName );
__cpuid( regs, 0 );
@ -227,7 +229,9 @@ void x86capabilities::Identify()
Model = (regs[ 0 ] >> 4) & 0xf;
FamilyID = (regs[ 0 ] >> 8) & 0xf;
TypeID = (regs[ 0 ] >> 12) & 0x3;
#ifdef __x86_64__
x86_64_8BITBRANDID = regs[ 1 ] & 0xff;
#endif
Flags = regs[ 3 ];
Flags2 = regs[ 2 ];
}
@ -238,7 +242,9 @@ void x86capabilities::Identify()
{
__cpuid( regs, 0x80000001 );
#ifdef __x86_64__
x86_64_12BITBRANDID = regs[1] & 0xfff;
#endif
EFlags2 = regs[ 2 ];
EFlags = regs[ 3 ];
}