From d061248791db8cd3c6030c4b29ce780cb8bc84da Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Fri, 23 May 2014 01:05:56 +0200 Subject: [PATCH 1/2] KWIML: Teach ABI.h about OpenRISC 1000 It defines __or1k__ and is big endian. --- Utilities/KWIML/ABI.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utilities/KWIML/ABI.h.in b/Utilities/KWIML/ABI.h.in index b71cdfb9f..21c9139c0 100644 --- a/Utilities/KWIML/ABI.h.in +++ b/Utilities/KWIML/ABI.h.in @@ -398,6 +398,10 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined. #elif defined(__mips) || defined(__mips__) || defined(__MIPS__) # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG +/* OpenRISC 1000 */ +#elif defined(__or1k__) +# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG + /* RS/6000 */ #elif defined(__THW_RS600) || defined(_IBMR2) || defined(_POWER) # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG From ef120655fcaedca08f8782455551efba488ef507 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Fri, 23 May 2014 01:05:56 +0200 Subject: [PATCH 2/2] KWSys CPU: Add support for OpenRISC 1000 --- Source/kwsys/CPU.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/kwsys/CPU.h.in b/Source/kwsys/CPU.h.in index 2e1a584b1..626914b54 100644 --- a/Source/kwsys/CPU.h.in +++ b/Source/kwsys/CPU.h.in @@ -80,6 +80,10 @@ #elif defined(__mips) || defined(__mips__) || defined(__MIPS__) # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG +/* OpenRISC 1000 */ +#elif defined(__or1k__) +# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG + /* RS/6000 */ #elif defined(__THW_RS600) || defined(_IBMR2) || defined(_POWER) # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG