mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 09:58:03 +02:00
CPU (Linux): adds support for HP PA‑RISC & SuperH CPU architecture detection
This commit is contained in:
@@ -360,6 +360,10 @@ static const char* parseCpuInfo(
|
||||
(cpu->name.length == 0 && ffParsePropLine(line, "model name :", &cpu->name)) ||
|
||||
(cpu->vendor.length == 0 && ffParsePropLine(line, "vendor :", &cpu->vendor)) ||
|
||||
(cpuMHz->length == 0 && ffParsePropLine(line, "cpu MHz :", cpuMHz)) ||
|
||||
#elif __hppa__
|
||||
(cpu->name.length == 0 && ffParsePropLine(line, "cpu :", &cpu->name)) ||
|
||||
#elif __sh__
|
||||
(cpu->name.length == 0 && ffParsePropLine(line, "cpu type :", &cpu->name)) ||
|
||||
#else
|
||||
(cpu->name.length == 0 && ffParsePropLine(line, "model name :", &cpu->name)) ||
|
||||
(cpu->name.length == 0 && ffParsePropLine(line, "model :", &cpu->name)) ||
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#define FF_ARCHITECTURE "alpha"
|
||||
#elif defined(__hppa__)
|
||||
#define FF_ARCHITECTURE "hppa"
|
||||
#elif defined(__sh__)
|
||||
#define FF_ARCHITECTURE "sh"
|
||||
#elif defined(__m68k__)
|
||||
#define FF_ARCHITECTURE "m68k"
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user