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>
This commit is contained in:
parent
415623581d
commit
349165223d
8
ABI.h.in
8
ABI.h.in
|
@ -418,6 +418,14 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined.
|
||||||
#elif defined(__vax__)
|
#elif defined(__vax__)
|
||||||
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
# 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 */
|
/* Unknown CPU */
|
||||||
#elif !defined(@KWIML@_ABI_NO_ERROR_ENDIAN)
|
#elif !defined(@KWIML@_ABI_NO_ERROR_ENDIAN)
|
||||||
# error "Byte order of target CPU unknown."
|
# error "Byte order of target CPU unknown."
|
||||||
|
|
Loading…
Reference in New Issue