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