From 663fc55992e210a2b0299764bacac3663f32613b Mon Sep 17 00:00:00 2001 From: gizmo98 Date: Fri, 13 Feb 2015 16:33:04 +0100 Subject: [PATCH] arm_features.h Add ARM architectures 8A and 6M Just copied macros from gcc source code: https://github.com/gcc-mirror/gcc/blob/113a5d9f83975b703ec06a1d2baa30604d322cf1/libatomic/config/arm/arm-config.h#L54 --- include/arm_features.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/arm_features.h b/include/arm_features.h index bb48a2bf..1f749daa 100644 --- a/include/arm_features.h +++ b/include/arm_features.h @@ -1,7 +1,14 @@ #ifndef __ARM_FEATURES_H__ #define __ARM_FEATURES_H__ -#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \ +#if defined(__ARM_ARCH_8A__) + +#define HAVE_ARMV8 +#define HAVE_ARMV7 +#define HAVE_ARMV6 +#define HAVE_ARMV5 + +#elif defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \ || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \ || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7S__) @@ -11,7 +18,8 @@ #elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \ || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \ - || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) + || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) \ + || defined(__ARM_ARCH_6M__) #define HAVE_ARMV6 #define HAVE_ARMV5 -- 2.39.5