Skip to content

Commit af26828

Browse files
committed
CPU (Linux): adds support for HP PA‑RISC & SuperH CPU architecture detection
1 parent f4c43ab commit af26828

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/detection/cpu/cpu_linux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ static const char* parseCpuInfo(
360360
(cpu->name.length == 0 && ffParsePropLine(line, "model name :", &cpu->name)) ||
361361
(cpu->vendor.length == 0 && ffParsePropLine(line, "vendor :", &cpu->vendor)) ||
362362
(cpuMHz->length == 0 && ffParsePropLine(line, "cpu MHz :", cpuMHz)) ||
363+
#elif __hppa__
364+
(cpu->name.length == 0 && ffParsePropLine(line, "cpu :", &cpu->name)) ||
365+
#elif __sh__
366+
(cpu->name.length == 0 && ffParsePropLine(line, "cpu type :", &cpu->name)) ||
363367
#else
364368
(cpu->name.length == 0 && ffParsePropLine(line, "model name :", &cpu->name)) ||
365369
(cpu->name.length == 0 && ffParsePropLine(line, "model :", &cpu->name)) ||

src/detection/version/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#define FF_ARCHITECTURE "alpha"
2727
#elif defined(__hppa__)
2828
#define FF_ARCHITECTURE "hppa"
29+
#elif defined(__sh__)
30+
#define FF_ARCHITECTURE "sh"
2931
#elif defined(__m68k__)
3032
#define FF_ARCHITECTURE "m68k"
3133
#else

0 commit comments

Comments
 (0)