aarch64: ifunc rename for kunpeng
authorXuelei Zhang <zhangxuelei4@huawei.com>
Fri, 27 Dec 2019 14:58:19 +0000 (11:58 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 27 Dec 2019 14:59:51 +0000 (11:59 -0300)
Rename ifunc for kunpeng to kunpeng920, and modify the corresponding
function files including IS_KUNPENG920 judgement.

Checked on aarch64-linux-gnu.

sysdeps/aarch64/multiarch/memset.c
sysdeps/aarch64/multiarch/strlen.c
sysdeps/unix/sysv/linux/aarch64/cpu-features.c
sysdeps/unix/sysv/linux/aarch64/cpu-features.h

index 4cc34b9..98fff64 100644 (file)
@@ -34,7 +34,7 @@ extern __typeof (__redirect_memset) __memset_kunpeng attribute_hidden;
 extern __typeof (__redirect_memset) __memset_generic attribute_hidden;
 
 libc_ifunc (__libc_memset,
-           IS_KUNPENG (midr)
+           IS_KUNPENG920 (midr)
            ?__memset_kunpeng
            : ((IS_FALKOR (midr) || IS_PHECDA (midr)) && zva_size == 64
             ? __memset_falkor
index abf6513..c2ce5ee 100644 (file)
@@ -34,7 +34,7 @@ extern __typeof (__redirect_strlen) __strlen_generic attribute_hidden;
 extern __typeof (__redirect_strlen) __strlen_asimd attribute_hidden;
 
 libc_ifunc (__strlen,
-           (USE_ASIMD_STRLEN () || IS_KUNPENG(midr)
+           (USE_ASIMD_STRLEN () || IS_KUNPENG920 (midr)
            ? __strlen_asimd
            :__strlen_generic));
 
index d0e50d0..30dc208 100644 (file)
@@ -38,7 +38,7 @@ static struct cpu_list cpu_list[] = {
       {"phecda",        0x680F0000},
       {"ares",          0x411FD0C0},
       {"emag",          0x503F0001},
-      {"kunpeng",       0x481FD010},
+      {"kunpeng920",    0x481FD010},
       {"generic",       0x0}
 };
 
index 87c4995..176c71c 100644 (file)
@@ -57,7 +57,7 @@
 #define IS_EMAG(midr) (MIDR_IMPLEMENTOR(midr) == 'P'                         \
                        && MIDR_PARTNUM(midr) == 0x000)
 
-#define IS_KUNPENG(midr) (MIDR_IMPLEMENTOR(midr) == 'H'                           \
+#define IS_KUNPENG920(midr) (MIDR_IMPLEMENTOR(midr) == 'H'                        \
                         && MIDR_PARTNUM(midr) == 0xd01)
 
 struct cpu_features