mirror of https://github.com/PCSX2/pcsx2.git
common: ifdef x64 specific code
gcc warning: set but unused
This commit is contained in:
parent
2a850cd5ad
commit
4bfb60865c
|
@ -197,8 +197,10 @@ void x86capabilities::Identify()
|
||||||
u32 cmds;
|
u32 cmds;
|
||||||
|
|
||||||
//AMD 64 STUFF
|
//AMD 64 STUFF
|
||||||
|
#ifdef __x86_64__
|
||||||
u32 x86_64_8BITBRANDID;
|
u32 x86_64_8BITBRANDID;
|
||||||
u32 x86_64_12BITBRANDID;
|
u32 x86_64_12BITBRANDID;
|
||||||
|
#endif
|
||||||
|
|
||||||
memzero( VendorName );
|
memzero( VendorName );
|
||||||
__cpuid( regs, 0 );
|
__cpuid( regs, 0 );
|
||||||
|
@ -227,7 +229,9 @@ void x86capabilities::Identify()
|
||||||
Model = (regs[ 0 ] >> 4) & 0xf;
|
Model = (regs[ 0 ] >> 4) & 0xf;
|
||||||
FamilyID = (regs[ 0 ] >> 8) & 0xf;
|
FamilyID = (regs[ 0 ] >> 8) & 0xf;
|
||||||
TypeID = (regs[ 0 ] >> 12) & 0x3;
|
TypeID = (regs[ 0 ] >> 12) & 0x3;
|
||||||
|
#ifdef __x86_64__
|
||||||
x86_64_8BITBRANDID = regs[ 1 ] & 0xff;
|
x86_64_8BITBRANDID = regs[ 1 ] & 0xff;
|
||||||
|
#endif
|
||||||
Flags = regs[ 3 ];
|
Flags = regs[ 3 ];
|
||||||
Flags2 = regs[ 2 ];
|
Flags2 = regs[ 2 ];
|
||||||
}
|
}
|
||||||
|
@ -238,7 +242,9 @@ void x86capabilities::Identify()
|
||||||
{
|
{
|
||||||
__cpuid( regs, 0x80000001 );
|
__cpuid( regs, 0x80000001 );
|
||||||
|
|
||||||
|
#ifdef __x86_64__
|
||||||
x86_64_12BITBRANDID = regs[1] & 0xfff;
|
x86_64_12BITBRANDID = regs[1] & 0xfff;
|
||||||
|
#endif
|
||||||
EFlags2 = regs[ 2 ];
|
EFlags2 = regs[ 2 ];
|
||||||
EFlags = regs[ 3 ];
|
EFlags = regs[ 3 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue