From eec2353b6939a3ebe97390f420582ffa032e425b Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Sun, 4 Feb 2024 11:35:29 +0000 Subject: [PATCH] [v1.04][X86] Fix bug (hopefully) --- src/x86/cpuid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/x86/cpuid.c b/src/x86/cpuid.c index 9e24072..139fa22 100644 --- a/src/x86/cpuid.c +++ b/src/x86/cpuid.c @@ -486,8 +486,8 @@ struct cpuInfo* get_cpu_info(void) { cpu->cpu_name = get_str_cpu_name_internal(); } else { - cpu->cpu_name = NULL; printWarn("Can't read CPU name from cpuid (needed extended level is 0x%.8X, max is 0x%.8X)", 0x80000004, cpu->maxExtendedLevels); + cpu->cpu_name = infer_cpu_name_from_uarch(cpu->arch); } cpu->topology_extensions = false; @@ -555,8 +555,6 @@ struct cpuInfo* get_cpu_info(void) { if(cpu->topo == NULL) return cpu; } - if (cpu->cpu_name == NULL) - cpu->cpu_name = infer_cpu_name_from_uarch(cpu->arch); cpu->num_cpus = modules; cpu->peak_performance = get_peak_performance(cpu, accurate_pp());