[PATCH] Add NIOS2 CPU support
Marek Vasut
marex at denx.de
Thu Nov 26 13:14:06 PST 2015
Add support for the NIOS2 soft-core CPU provided by Altera.
Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Guillem Jover <guillem at hadrons.org>
Cc: Ley Foon Tan <lftan at altera.com>
Cc: Thomas Chou <thomas at wytron.com.tw>
Cc: Walter Goossens <waltergoossens at home.nl>
---
src/local-elf.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/local-elf.h b/src/local-elf.h
index 612ce12..2bf6538 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -134,6 +134,12 @@
#define ELF_TARG_DATA ELFDATA2LSB
#endif
+#elif defined(__nios2__)
+
+#define ELF_TARG_MACH EM_NIOS2
+#define ELF_TARG_CLASS ELFCLASS32
+#define ELF_TARG_DATA ELFDATA2LSB
+
#elif defined(__powerpc__)
#define ELF_TARG_MACH EM_PPC
--
2.6.2
More information about the libbsd
mailing list