mirror of
https://github.com/kdlucas/byte-unixbench.git
synced 2026-08-04 03:03:29 +08:00
As the content of /proc/cpuinfo for arm64 is different from x86, which the current getCpuInfo implementation based on, the getCpuInfo function is basically deficient for arm64. Refer to the id definitions in linux kernel header file for arm64 cpu, Convert the corresponding parsing fileds(like 'Features' vs 'flags') and add the vendor id translation to support getCpuInfo for arm64. The code logic of the non-arm64 architecture remains unchanged. Arm64 cpu vender id References: Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/include/asm/cputype.h?h=v6.13-rc5 Signed-off-by: Zengkai163 <zzk20210127@163.com>
67 KiB
Executable File
67 KiB
Executable File