summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2012-12-21 11:20:02 (GMT)
committerBrad King <brad.king@kitware.com>2012-12-21 13:27:29 (GMT)
commit349165223d26f0ffc5ad004b4a05a8a92121ac20 (patch)
tree087417b171f7ae79cc0525d3cdd5a7a0d6eea53b
parent415623581da722a1802d0dc800719bfc760733cc (diff)
downloadCMake-349165223d26f0ffc5ad004b4a05a8a92121ac20.zip
CMake-349165223d26f0ffc5ad004b4a05a8a92121ac20.tar.gz
CMake-349165223d26f0ffc5ad004b4a05a8a92121ac20.tar.bz2
KWIML: Teach ABI.h about Aarch64
The __aarch64__ defines Aarch64, while __AARCH64EB__ defines bigendian and __AARCH64EL__ little endian. Only little endian tested, no big endian toolchain exists yet. Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
-rw-r--r--ABI.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/ABI.h.in b/ABI.h.in
index f93ddba..7f4772a 100644
--- a/ABI.h.in
+++ b/ABI.h.in
@@ -418,6 +418,14 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined.
#elif defined(__vax__)
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
+/* Aarch64 */
+#elif defined(__aarch64__)
+# if !defined(__AARCH64EB__)
+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE
+# else
+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
+# endif
+
/* Unknown CPU */
#elif !defined(@KWIML@_ABI_NO_ERROR_ENDIAN)
# error "Byte order of target CPU unknown."