summaryrefslogtreecommitdiff
path: root/src/basic/architecture.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-30 17:07:34 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-30 17:07:34 -0400
commitb79660e6acb964f94ddba0ea4e1182215934dfc3 (patch)
tree045f3f6c3a6f6d2faa491c3cec0873f98dd26668 /src/basic/architecture.h
parent26ccc1d0875b0e0c4306b03a52aff712c23d46c7 (diff)
architecture: Add nios2 (#3159)
Add nios2 architecture support. The nios2 is a softcore by Altera.
Diffstat (limited to 'src/basic/architecture.h')
-rw-r--r--src/basic/architecture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/architecture.h b/src/basic/architecture.h
index c22cbc8279..91ec108e04 100644
--- a/src/basic/architecture.h
+++ b/src/basic/architecture.h
@@ -57,6 +57,7 @@ enum {
ARCHITECTURE_M68K,
ARCHITECTURE_TILEGX,
ARCHITECTURE_CRIS,
+ ARCHITECTURE_NIOS2,
_ARCHITECTURE_MAX,
_ARCHITECTURE_INVALID = -1
};
@@ -187,6 +188,9 @@ int uname_architecture(void);
#elif defined(__cris__)
# define native_architecture() ARCHITECTURE_CRIS
# error "Missing LIB_ARCH_TUPLE for CRIS"
+#elif defined(__nios2__)
+# define native_architecture() ARCHITECTURE_NIOS2
+# define LIB_ARCH_TUPLE "nios2-linux-gnu"
#else
# error "Please register your architecture here!"
#endif