summaryrefslogtreecommitdiff
path: root/src/basic/architecture.c
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.c
parent26ccc1d0875b0e0c4306b03a52aff712c23d46c7 (diff)
architecture: Add nios2 (#3159)
Add nios2 architecture support. The nios2 is a softcore by Altera.
Diffstat (limited to 'src/basic/architecture.c')
-rw-r--r--src/basic/architecture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/architecture.c b/src/basic/architecture.c
index a9ecfc1cd6..8e2c2b02d2 100644
--- a/src/basic/architecture.c
+++ b/src/basic/architecture.c
@@ -121,6 +121,8 @@ int uname_architecture(void) {
{ "tilegx", ARCHITECTURE_TILEGX },
#elif defined(__cris__)
{ "crisv32", ARCHITECTURE_CRIS },
+#elif defined(__nios2__)
+ { "nios2", ARCHITECTURE_NIOS2 },
#else
#error "Please register your architecture here!"
#endif
@@ -171,6 +173,7 @@ static const char *const architecture_table[_ARCHITECTURE_MAX] = {
[ARCHITECTURE_M68K] = "m68k",
[ARCHITECTURE_TILEGX] = "tilegx",
[ARCHITECTURE_CRIS] = "cris",
+ [ARCHITECTURE_NIOS2] = "nios2",
};
DEFINE_STRING_TABLE_LOOKUP(architecture, int);