[v1.04][ARM] Add additional debug info for Apple ARM chips

This commit is contained in:
Dr-Noob
2023-12-24 11:40:06 +01:00
parent 56e8cc7503
commit 727c49fdae

View File

@@ -526,6 +526,12 @@ void print_debug(struct cpuInfo* cpu) {
printf("%ld MHz\n", freq);
}
}
#if defined(__APPLE__) || defined(__MACH__)
printf("hw.cpufamily: 0x%.8X\n", get_sys_info_by_name("hw.cpufamily"));
printf("hw.cpusubfamily: 0x%.8X\n", get_sys_info_by_name("hw.cpusubfamily"));
printf("hw.physicalcpu: %d\n", get_sys_info_by_name("hw.physicalcpu"));
#endif
}
void free_topo_struct(struct topology* topo) {