]> Git Repo - qemu.git/commitdiff
nios2: Add support for Nios-II R1
authorMarek Vasut <[email protected]>
Wed, 18 Jan 2017 22:01:46 +0000 (23:01 +0100)
committerRichard Henderson <[email protected]>
Tue, 24 Jan 2017 21:10:36 +0000 (13:10 -0800)
Add remaining bits of the Altera NiosII R1 support into qemu, which
is documentation, MAINTAINERS file entry, configure bits, arch_init
and configuration files for both linux-user (userland binaries) and
softmmu (hardware emulation).

Signed-off-by: Marek Vasut <[email protected]>
Cc: Chris Wulff <[email protected]>
Cc: Jeff Da Silva <[email protected]>
Cc: Ley Foon Tan <[email protected]>
Cc: Sandra Loosemore <[email protected]>
Cc: Yves Vandervennet <[email protected]>
Reviewed-by: Alexander Graf <[email protected]>
Message-Id: <20170118220146[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
MAINTAINERS
arch_init.c
configure
default-configs/nios2-linux-user.mak [new file with mode: 0644]
default-configs/nios2-softmmu.mak [new file with mode: 0644]
include/sysemu/arch_init.h
qemu-doc.texi

index 6a3df667787e201f18e03160b2efb448025402c8..efc85e506b8fe866b6ecfe0fab172936b91e9d94 100644 (file)
@@ -187,6 +187,14 @@ F: disas/moxie.c
 F: hw/moxie/
 F: default-configs/moxie-softmmu.mak
 
+NiosII
+M: Chris Wulff <[email protected]>
+M: Marek Vasut <[email protected]>
+S: Maintained
+F: target/nios2/
+F: hw/nios2/
+F: disas/nios2.c
+
 OpenRISC
 M: Jia Liu <[email protected]>
 S: Maintained
index c316ae102388acd8cc9646cde8565354a0e2b658..0810116144a76c680dd6905bb34b46841ba5e204 100644 (file)
@@ -63,6 +63,8 @@ int graphic_depth = 32;
 #define QEMU_ARCH QEMU_ARCH_MIPS
 #elif defined(TARGET_MOXIE)
 #define QEMU_ARCH QEMU_ARCH_MOXIE
+#elif defined(TARGET_NIOS2)
+#define QEMU_ARCH QEMU_ARCH_NIOS2
 #elif defined(TARGET_OPENRISC)
 #define QEMU_ARCH QEMU_ARCH_OPENRISC
 #elif defined(TARGET_PPC)
index 1004ef55736768d286afab9f286462952c0d433c..86fd833feb6e8efc449a2aec1bf5e0b3129aec01 100755 (executable)
--- a/configure
+++ b/configure
@@ -5935,6 +5935,8 @@ case "$target_name" in
   ;;
   moxie)
   ;;
+  nios2)
+  ;;
   or32)
     TARGET_ARCH=openrisc
     TARGET_BASE_ARCH=openrisc
@@ -6140,6 +6142,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do
   moxie*)
     disas_config "MOXIE"
   ;;
+  nios2)
+    disas_config "NIOS2"
+  ;;
   or32)
     disas_config "OPENRISC"
   ;;
diff --git a/default-configs/nios2-linux-user.mak b/default-configs/nios2-linux-user.mak
new file mode 100644 (file)
index 0000000..5be3eb7
--- /dev/null
@@ -0,0 +1 @@
+# Default configuration for nios2-linux-user
diff --git a/default-configs/nios2-softmmu.mak b/default-configs/nios2-softmmu.mak
new file mode 100644 (file)
index 0000000..74dc70c
--- /dev/null
@@ -0,0 +1,6 @@
+# Default configuration for nios2-softmmu
+
+CONFIG_NIOS2=y
+CONFIG_SERIAL=y
+CONFIG_PTIMER=y
+CONFIG_ALTERA_TIMER=y
index 20b01e30048c62984e5ab86ecd87b4c56a7ae7ca..2bf16b203c0ad8997c6c98eb9220266745bea032 100644 (file)
@@ -23,6 +23,7 @@ enum {
     QEMU_ARCH_UNICORE32 = (1 << 14),
     QEMU_ARCH_MOXIE = (1 << 15),
     QEMU_ARCH_TRICORE = (1 << 16),
+    QEMU_ARCH_NIOS2 = (1 << 17),
 };
 
 extern const uint32_t arch_type;
index 0b2746f0b14f790d855d50224f87214c6c7ffe25..fe7b69b917625e009961fe0933de399068de9099 100644 (file)
@@ -2901,6 +2901,9 @@ The binary format is detected automatically.
 @command{qemu-mips} TODO.
 @command{qemu-mipsel} TODO.
 
+@cindex user mode (NiosII)
+@command{qemu-nios2} TODO.
+
 @cindex user mode (PowerPC)
 @command{qemu-ppc64abi32} TODO.
 @command{qemu-ppc64} TODO.
This page took 0.046846 seconds and 4 git commands to generate.