From 0db8e7b36665fa90c53161742dedab21d786924c Mon Sep 17 00:00:00 2001 From: Xuelei Zhang Date: Thu, 19 Dec 2019 14:55:06 +0000 Subject: aarch64: Add Huawei Kunpeng to tunable cpu list Kunpeng processer is a 64-bit Arm-compatible CPU released by Huawei, and we have already signed a copyright assignement with the FSF. This patch adds its to cpu list, and related macro for IFUNC. Checked on aarch64-linux-gnu. Reviewed-by: Szabolcs Nagy --- sysdeps/unix/sysv/linux/aarch64/cpu-features.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdeps/unix/sysv/linux/aarch64/cpu-features.h') diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.h b/sysdeps/unix/sysv/linux/aarch64/cpu-features.h index 0fa57dc66f..87c4995627 100644 --- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.h +++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.h @@ -57,6 +57,9 @@ #define IS_EMAG(midr) (MIDR_IMPLEMENTOR(midr) == 'P' \ && MIDR_PARTNUM(midr) == 0x000) +#define IS_KUNPENG(midr) (MIDR_IMPLEMENTOR(midr) == 'H' \ + && MIDR_PARTNUM(midr) == 0xd01) + struct cpu_features { uint64_t midr_el1; -- cgit 1.4.1