Add support for QEMU's virtual AMD cpu to avoid misdetection as Opteron

This commit is contained in:
Martin Kroeker
2026-06-15 14:54:24 +02:00
committed by GitHub
parent 9bdf051b96
commit 18e2fe9fa4
+12 -1
View File
@@ -829,7 +829,18 @@ static gotoblas_t *get_coretype(void){
}
if (family == 0xf){
if ((exfamily == 0) || (exfamily == 2)) {
if (ecx & (1 << 0)) return &gotoblas_OPTERON_SSE3;
if (exmodel == 6 && model == 11) { /*QEMU virtual cpu*/
if (support_avx512_bf16())
return &gotoblas_COOPERLAKE;
if (support_avx512())
return &gotoblas_SKYLAKEX;
if (support_avx2())
return &gotoblas_ZEN;
else
return &gotoblas_BARCELONA;
}
}
if (ecx & (1 << 0)) return &gotoblas_OPTERON_SSE3;
else return &gotoblas_OPTERON;
} else if (exfamily == 5 || exfamily == 7) {
return &gotoblas_BOBCAT;