代码拉取完成,页面将自动刷新
From 88b2c88cbd7e9b5f80f14375d55e4b5524572bcc Mon Sep 17 00:00:00 2001
From: Qingqing Li <liqingqing3@huawei.com>
Date: Mon, 7 Jul 2025 22:36:37 +0800
Subject: [PATCH] Using __memcpy_generic when kunpeng920 with tsv120 micro
architecture
---
sysdeps/aarch64/multiarch/memcpy.c | 2 ++
sysdeps/unix/sysv/linux/aarch64/cpu-features.h | 3 +++
2 files changed, 5 insertions(+)
diff --git a/sysdeps/aarch64/multiarch/memcpy.c b/sysdeps/aarch64/multiarch/memcpy.c
index e7c7795d..654e4cba 100644
--- a/sysdeps/aarch64/multiarch/memcpy.c
+++ b/sysdeps/aarch64/multiarch/memcpy.c
@@ -47,6 +47,8 @@ select_memcpy_ifunc (void)
{
if (IS_A64FX (midr))
return __memcpy_a64fx;
+ if (IS_KUNPENG920_TSV120 (midr))
+ return __memcpy_generic;
return prefer_sve_ifuncs ? __memcpy_sve : __memcpy_generic;
}
diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.h b/sysdeps/unix/sysv/linux/aarch64/cpu-features.h
index 351a619d..0e83a817 100644
--- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.h
+++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.h
@@ -60,6 +60,9 @@
#define IS_KUNPENG920(midr) (MIDR_IMPLEMENTOR(midr) == 'H' \
&& MIDR_PARTNUM(midr) == 0xd01)
+#define IS_KUNPENG920_TSV120(midr) (MIDR_IMPLEMENTOR(midr) == 'H' \
+ && MIDR_PARTNUM(midr) == 0xd02)
+
#define IS_A64FX(midr) (MIDR_IMPLEMENTOR(midr) == 'F' \
&& MIDR_PARTNUM(midr) == 0x001)
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。