CPU: adds CPU microarchitecture detection for x64 and reporting

Fixes #1928
This commit is contained in:
李通洲
2025-08-23 15:14:57 +08:00
parent 8f6608db74
commit 9ae968fbd3
10 changed files with 70 additions and 17 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ FF_MAYBE_UNUSED static const char* detectCPUX86(const FFCPUOptions* options, FFC
cpu->coresPhysical *= cpu->packages;
// Ref https://github.com/fastfetch-cli/fastfetch/issues/1194#issuecomment-2295058252
ffCPUDetectSpeedByCpuid(cpu);
ffCPUDetectByCpuid(cpu);
if (!detectFrequency(cpu, options) || cpu->frequencyBase == 0)
cpu->frequencyBase = (uint32_t) ffStrbufToUInt(&cpuMHz, 0);