[v1.05][ARM] Preeliminary support for SVE detection (#259)

This commit is contained in:
Dr-Noob
2024-08-10 11:06:28 +01:00
parent e42f04cca8
commit 90624b9aaa
6 changed files with 65 additions and 3 deletions

View File

@@ -294,7 +294,10 @@ int get_vpus_width(struct cpuInfo* cpu) {
case UARCH_NEOVERSE_V1:
return 256;
default:
if(cpu->feat->NEON) {
if (cpu->feat->SVE && cpu->feat->cntb > 0) {
return cpu->feat->cntb * 8;
}
else if (cpu->feat->NEON) {
if(is_ARMv8_or_newer(cpu)) {
return 128;
}