KWIML: Teach ABI.h about Xtensa architecture

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov 2015-03-17 15:51:04 +03:00 committed by Brad King
parent 4871885b9c
commit ded79a976e
1 changed files with 6 additions and 0 deletions

View File

@ -432,6 +432,12 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined.
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
# endif
/* Xtensa */
#elif defined(__XTENSA_EB__)
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
#elif defined(__XTENSA_EL__)
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE
/* Unknown CPU */
#elif !defined(@KWIML@_ABI_NO_ERROR_ENDIAN)
# error "Byte order of target CPU unknown."