diff --git a/common/src/x86emitter/cpudetect.cpp b/common/src/x86emitter/cpudetect.cpp index 47910bac92..de917bb660 100644 --- a/common/src/x86emitter/cpudetect.cpp +++ b/common/src/x86emitter/cpudetect.cpp @@ -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 ]; }