From c68ae8e91e6e15ad89552975bf7664c39f314958 Mon Sep 17 00:00:00 2001 From: gnick79 Date: Sun, 19 Dec 2010 15:06:30 +0000 Subject: [PATCH] Related to CPUID detecting: * fixed a bug on display info for AMD CPUs. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6612 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/CPUDetect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/Src/CPUDetect.cpp b/Source/Core/Common/Src/CPUDetect.cpp index 79aad925e7..6db24026c6 100644 --- a/Source/Core/Common/Src/CPUDetect.cpp +++ b/Source/Core/Common/Src/CPUDetect.cpp @@ -173,7 +173,7 @@ void CPUInfo::Detect() if (apic_id_core_id_size == 0) { // New mechanism for modern CPUs. num_cores = logical_cpu_count; - if (HTT) { + if (HTT && vendor == VENDOR_INTEL) { __cpuid(cpu_id, 0x00000004); int cores_x_package = ((cpu_id[0] >> 26) & 0x3F) + 1; cores_x_package = ((logical_cpu_count % cores_x_package) == 0) ? cores_x_package : 1; @@ -200,7 +200,7 @@ std::string CPUInfo::Summarize() else { sum = StringFromFormat("%s, %i cores", cpu_string, num_cores); - if (HTT) sum += StringFromFormat(" (%i logical IDs per physical core)", logical_cpu_count); + if (HTT && vendor == VENDOR_INTEL) sum += StringFromFormat(" (%i logical IDs per physical core)", logical_cpu_count); } if (bSSE) sum += ", SSE"; if (bSSE2) sum += ", SSE2";