diff --git a/src/common/main.c b/src/common/main.c index b8ff5f6..7831463 100644 --- a/src/common/main.c +++ b/src/common/main.c @@ -13,7 +13,7 @@ #include "../arm/midr.h" #endif -static const char* VERSION = "0.94"; +static const char* VERSION = "0.95"; void print_help(char *argv[]) { printf("Usage: %s [--version] [--help] [--debug] [--style \"fancy\"|\"retro\"|\"legacy\"] [--color \"intel\"|\"amd\"|'R,G,B:R,G,B:R,G,B:R,G,B']\n\n", argv[0]); diff --git a/src/x86/cpuid.c b/src/x86/cpuid.c index f6286a1..1d13a84 100755 --- a/src/x86/cpuid.c +++ b/src/x86/cpuid.c @@ -891,13 +891,19 @@ char* get_str_fma(struct cpuInfo* cpu) { return string; } -/*** DEBUG ***/ - void print_debug(struct cpuInfo* cpu) { + uint32_t eax = 0x00000001; + uint32_t ebx = 0; + uint32_t ecx = 0; + uint32_t edx = 0; + + cpuid(&eax, &ebx, &ecx, &edx); + printf("%s\n", cpu->cpu_name); if(cpu->hv->present) printf("- Hypervisor: %s\n", cpu->hv->hv_name); printf("- Max standard level: 0x%.8X\n", cpu->maxLevels); printf("- Max extended level: 0x%.8X\n", cpu->maxExtendedLevels); + printf("- CPUID dump: 0x%.8X\n", eax); free_cpuinfo_struct(cpu); }