Skip to content

Commit 9019f9b

Browse files
authored
Recognize other recent AVX2-capable Zhaoxin cpus
1 parent 05ecfc6 commit 9019f9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpuid_x86.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,9 +1843,11 @@ int get_cpuname(void)
18431843
if (support_avx2()) return CPUTYPE_ZEN;
18441844
else return CPUTYPE_DUNNINGTON;
18451845
default:
1846+
if (support_avx2()) return CPUTYPE_ZEN;
18461847
return CPUTYPE_NEHALEM;
18471848
}
18481849
default:
1850+
if (support_avx2()) return CPUTYPE_ZEN;
18491851
return CPUTYPE_NEHALEM;
18501852
}
18511853
}

0 commit comments

Comments
 (0)