arm_features.h Add ARM architectures 8A and 6M
authorgizmo98 <gizmo98@users.noreply.github.com>
Fri, 13 Feb 2015 15:33:04 +0000 (16:33 +0100)
committertwinaphex <libretro@gmail.com>
Fri, 6 Mar 2015 13:33:17 +0000 (14:33 +0100)
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

index bb48a2b..1f749da 100644 (file)
@@ -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