mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-25 18:55:23 -06:00
Correct SMT/HTT flag according to AP-485
This commit is contained in:
@@ -143,6 +143,14 @@ void cpuid_init(void)
|
||||
|
||||
int thread_per_core = 1;
|
||||
|
||||
// Set correct HTT flag according to AP-485
|
||||
if (cpuid_info.max_cpuid >= 1 && cpuid_info.flags.htt) {
|
||||
cpuid(1, 0,®[0], ®[1], ®[2], ®[3]);
|
||||
if(((reg[1] >> 16) & 0xFF) <= 1) {
|
||||
cpuid_info.flags.htt = !cpuid_info.flags.htt;
|
||||
}
|
||||
}
|
||||
|
||||
switch (cpuid_info.vendor_id.str[0]) {
|
||||
case 'A':
|
||||
// AMD Processors
|
||||
|
||||
Reference in New Issue
Block a user