summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/CPUDetect.cpp
diff options
context:
space:
mode:
authorgnick79 <gnick79@gmail.com>2011-02-02 02:05:57 +0000
committergnick79 <gnick79@gmail.com>2011-02-02 02:05:57 +0000
commit0f0adb4aeeb7f61d86f16ff5bb675e2d4c703484 (patch)
tree64c4107c0b32bdcfddf2685d564fdee57e8c6b4e /Source/Core/Common/Src/CPUDetect.cpp
parent4223ebc8d2bd25c62e7823eea73749925f5fb84d (diff)
* Quick CPUID fix
- this should fix a detecting problem related to some AMD CPU git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7037 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/CPUDetect.cpp')
-rw-r--r--Source/Core/Common/Src/CPUDetect.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/CPUDetect.cpp b/Source/Core/Common/Src/CPUDetect.cpp
index 690875ec60..063c55abba 100644
--- a/Source/Core/Common/Src/CPUDetect.cpp
+++ b/Source/Core/Common/Src/CPUDetect.cpp
@@ -180,6 +180,10 @@ void CPUInfo::Detect()
num_cores = (cores_x_package > 1) ? cores_x_package : num_cores;
logical_cpu_count /= cores_x_package;
}
+ else
+ {
+ num_cores = 1;
+ }
} else {
// Use AMD's new method.
num_cores = (cpu_id[2] & 0xFF) + 1;