[v0.98][PPC] Obtain microarchitecture using getauxval

This commit is contained in:
Dr-Noob
2021-07-31 09:50:38 +02:00
parent af22b2e186
commit 9b483d2db5
4 changed files with 99 additions and 7 deletions

View File

@@ -118,6 +118,7 @@ struct cpuInfo* get_cpu_info() {
cpu->cpu_name = malloc(sizeof(char) * strlen(STRING_UNKNOWN) + 1);
snprintf(cpu->cpu_name, strlen(STRING_UNKNOWN) + 1, STRING_UNKNOWN);
cpu->arch = get_uarch_from_auxval(cpu);
cpu->cach = get_cache_info(cpu);
cpu->topo = get_topology_info(cpu, cpu->cach);