[0.97] Do not count "L4" cache when computing the max cache level

This commit is contained in:
Dr-Noob
2021-04-30 22:57:15 +02:00
parent fe7a99087d
commit a6714dabc7
2 changed files with 2 additions and 0 deletions

View File

@@ -232,6 +232,7 @@ bool build_topo_from_apic(uint32_t* apic_pkg, uint32_t* apic_smt, uint32_t** cac
if(apic_id[c] > 0) num_caches++;
}
printf("[i=%d]: %p\n", i, (void *) topo->cach->cach_arr[i]);
topo->cach->cach_arr[i]->num_caches = num_caches;
}

View File

@@ -581,6 +581,7 @@ struct cache* get_cache_info_general(struct cache* cach, uint32_t level) {
}
else {
printWarn("Found unknown unified cache at level %d (size is %d bytes)", cache_level, cache_total_size);
cach->max_cache_level--;
}
break;