Browse Source

Fix:Problem with identifying some ARM64 processors.

tags/v0.3.30
Masato Nakagawa 3 months ago
parent
commit
1dd396033a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cpuid_arm64.c

+ 2
- 2
cpuid_arm64.c View File

@@ -276,11 +276,11 @@ int detect(void)
fclose(infile);
}
}
sprintf(cpuimpl,"0x%2x",implementer);
sprintf(cpuimpl,"0x%02x",implementer);
cpu_implementer=strdup(cpuimpl);
}
qsort(cpucores,1024,sizeof(int),cpusort);
sprintf(cpupart,"0x%3x",cpucores[0]);
sprintf(cpupart,"0x%03x",cpucores[0]);
cpu_part=strdup(cpupart);
if(cpu_part != NULL && cpu_implementer != NULL) {
// Arm


Loading…
Cancel
Save