[v0.95] Add 0x8000001D sublevel query to --raw option

This commit is contained in:
Dr-Noob
2021-04-07 14:35:45 +02:00
parent 7420792ef5
commit 044608f31f

View File

@@ -982,6 +982,19 @@ void print_raw(struct cpuInfo* cpu) {
} }
} }
for(uint32_t reg=0x80000000; reg <= cpu->maxExtendedLevels; reg++) { for(uint32_t reg=0x80000000; reg <= cpu->maxExtendedLevels; reg++) {
if(reg == 0x8000001D) {
for(uint32_t reg2=0x00000000; reg2 < cpu->cach->max_cache_level; reg2++) {
eax = reg;
ebx = 0;
ecx = reg2;
edx = 0;
cpuid(&eax, &ebx, &ecx, &edx);
printf(" 0x%.8X 0x%.2X: 0x%.8X 0x%.8X 0x%.8X 0x%.8X\n", reg, reg2, eax, ebx, ecx, edx);
}
}
else {
eax = reg; eax = reg;
ebx = 0; ebx = 0;
ecx = 0; ecx = 0;
@@ -993,6 +1006,7 @@ void print_raw(struct cpuInfo* cpu) {
} }
} }
} }
}
void free_topo_struct(struct topology* topo) { void free_topo_struct(struct topology* topo) {
free(topo->apic->cache_select_mask); free(topo->apic->cache_select_mask);