diff options
Diffstat (limited to 'Source/Core/Common/x64CPUDetect.cpp')
| -rw-r--r-- | Source/Core/Common/x64CPUDetect.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp index d4d3eba05e..d8825d3d50 100644 --- a/Source/Core/Common/x64CPUDetect.cpp +++ b/Source/Core/Common/x64CPUDetect.cpp @@ -21,7 +21,7 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx, #if defined _LP64 // Note: EBX is reserved on Mac OS X and in PIC on Linux, so it has to // restored at the end of the asm block. - __asm__ ( + __asm__( "cpuid;" "movl %%ebx,%1;" : "=a" (*eax), @@ -32,7 +32,7 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx, : "rbx" ); #else - __asm__ ( + __asm__( "cpuid;" "movl %%ebx,%1;" : "=a" (*eax), @@ -219,7 +219,8 @@ void CPUInfo::Detect() logical_cpu_count /= cores_x_package; } } - } else + } + else { // Use AMD's new method. num_cores = (cpu_id[2] & 0xFF) + 1; |
