summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-11-26 20:48:00 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-02 13:40:36 (GMT)
commitf2ca704cbb0722da8f43b1f99b07e6fac32dc0f6 (patch)
tree7a950505fcb07ca5a9af063ec0577e36d8832dbd /Source
parentb4a2ada297214119647b26df8abe394cd73ca53a (diff)
downloadCMake-f2ca704cbb0722da8f43b1f99b07e6fac32dc0f6.zip
CMake-f2ca704cbb0722da8f43b1f99b07e6fac32dc0f6.tar.gz
CMake-f2ca704cbb0722da8f43b1f99b07e6fac32dc0f6.tar.bz2
Add NIOS2 CPU support
Add necessary bits to support the NIOS2 little-endian CPU. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Walter Goossens <waltergoossens@home.nl>
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/CPU.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/CPU.h.in b/Source/kwsys/CPU.h.in
index 884d71a..66ffbb1 100644
--- a/Source/kwsys/CPU.h.in
+++ b/Source/kwsys/CPU.h.in
@@ -88,6 +88,10 @@
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
+/* NIOS2 */
+#elif defined(__NIOS2__) || defined(__NIOS2) || defined(__nios2__)
+# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE
+
/* OpenRISC 1000 */
#elif defined(__or1k__)
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG