mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-25 18:55:23 -06:00
Fix a detection issue caused by some Pre-ZEN AMD CPUs sometimes incorrectly reporting SMT as supported
This commit is contained in:
@@ -166,7 +166,11 @@ void cpuid_init(void)
|
||||
thread_per_core = 2;
|
||||
}
|
||||
} else if (cpuid_info.flags.htt) {
|
||||
thread_per_core = 2;
|
||||
if (cpuid_info.version.extendedFamily >= 8) {
|
||||
thread_per_core = 2;
|
||||
} else {
|
||||
cpuid_info.flags.htt = 0; // Pre-ZEN never has SMT
|
||||
}
|
||||
}
|
||||
cpuid_info.topology.core_count = cpuid_info.topology.thread_count / thread_per_core;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user