From 471a975942dec76bf0ccb92b6c6da055385683fb Mon Sep 17 00:00:00 2001 From: Beniamin Sandu Date: Sun, 25 Jun 2023 20:16:16 +0300 Subject: [PATCH] aesce: do not specify an arch version when enabling crypto instructions Building mbedtls with different aarch64 tuning variations revealed that we should use the crypto extensions without forcing a particular architecture version or core, as that can create issues. Signed-off-by: Beniamin Sandu --- library/aesce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/aesce.c b/library/aesce.c index 4db8d2a19..42662bbe0 100644 --- a/library/aesce.c +++ b/library/aesce.c @@ -72,7 +72,7 @@ # define MBEDTLS_POP_TARGET_PRAGMA # elif defined(__GNUC__) # pragma GCC push_options -# pragma GCC target ("arch=armv8-a+crypto") +# pragma GCC target ("+crypto") # define MBEDTLS_POP_TARGET_PRAGMA # elif defined(_MSC_VER) # error "Required feature(__ARM_FEATURE_AES) is not enabled."