Files
byte-unixbench/UnixBench/Run
Zengkai163 54fe54dede getCpuInfo: Add support for arm64
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>
2025-01-02 21:09:29 +08:00

67 KiB
Executable File