CPU (Linux): adds support for HP PA‑RISC & SuperH CPU architecture detection

This commit is contained in:
李通洲
2025-10-05 09:22:06 +08:00
parent f4c43abbf7
commit af26828f91
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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)) ||
+2
View File
@@ -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