Skip to content

cpuinfo: add loongarch64 /proc/cpuinfo parsing

This pull request adds /proc/cpuinfo parsing support for LoongArch (loongarch64), as it uses a different /proc/cpuinfo format, a snippet as follows:

processor               : 7
package                 : 0
core                    : 3
global_id               : 7
CPU Family              : Loongson-64bit
Model Name              : Loongson-3A6000-HV
CPU Revision            : 0x00
FPU Revision            : 0x00
CPU MHz                 : 2500.00
BogoMIPS                : 5000.00
TLB Entries             : 2112
Address Sizes           : 48 bits physical, 48 bits virtual
ISA                     : loongarch32 loongarch64
Features                : cpucfg lam ual fpu lsx lasx crc32 lvz lbt_x86 lbt_arm lbt_mips
Hardware Watchpoint     : yes, iwatch count: 8, dwatch count: 4

I have tested this with KInfoCenter, which shows the processor model correctly.

Merge request reports

Loading