c5d972
From 381b29616abb82babc8163bdf516c6da87544b35 Mon Sep 17 00:00:00 2001
c5d972
From: Naohiro Tamura <naohirot@fujitsu.com>
c5d972
Date: Fri, 24 Sep 2021 07:49:59 +0000
c5d972
Subject: [PATCH] aarch64: Disable A64FX memcpy/memmove BTI unconditionally
c5d972
c5d972
This patch disables A64FX memcpy/memmove BTI instruction insertion
c5d972
unconditionally such as A64FX memset patch [1] for performance.
c5d972
c5d972
[1] commit 07b427296b8d59f439144029d9a948f6c1ce0a31
c5d972
c5d972
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
c5d972
---
c5d972
 sysdeps/aarch64/multiarch/memcpy_a64fx.S | 3 +++
c5d972
 1 file changed, 3 insertions(+)
c5d972
c5d972
diff --git a/sysdeps/aarch64/multiarch/memcpy_a64fx.S b/sysdeps/aarch64/multiarch/memcpy_a64fx.S
c5d972
index 65528405bb..ae7464e09f 100644
c5d972
--- a/sysdeps/aarch64/multiarch/memcpy_a64fx.S
c5d972
+++ b/sysdeps/aarch64/multiarch/memcpy_a64fx.S
c5d972
@@ -19,6 +19,9 @@
c5d972
 
c5d972
 #include <sysdep.h>
c5d972
 
c5d972
+#undef BTI_C
c5d972
+#define BTI_C
c5d972
+
c5d972
 /* Assumptions:
c5d972
  *
c5d972
  * ARMv8.2-a, AArch64, unaligned accesses, sve
c5d972
-- 
c5d972
2.31.1
c5d972