Revision | e671711c9a8c1de540f035095e18458bc03968de (tree) |
---|---|
Time | 2017-01-25 06:10:36 |
Author | Marek Vasut <marex@denx...> |
Commiter | Richard Henderson |
nios2: Add support for Nios-II R1
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 <marex@denx.de>
Cc: Chris Wulff <crwulff@gmail.com>
Cc: Jeff Da Silva <jdasilva@altera.com>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Sandra Loosemore <sandra@codesourcery.com>
Cc: Yves Vandervennet <yvanderv@altera.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Message-Id: <20170118220146.489-8-marex@denx.de>
Signed-off-by: Richard Henderson <rth@twiddle.net>
@@ -187,6 +187,14 @@ F: disas/moxie.c | ||
187 | 187 | F: hw/moxie/ |
188 | 188 | F: default-configs/moxie-softmmu.mak |
189 | 189 | |
190 | +NiosII | |
191 | +M: Chris Wulff <crwulff@gmail.com> | |
192 | +M: Marek Vasut <marex@denx.de> | |
193 | +S: Maintained | |
194 | +F: target/nios2/ | |
195 | +F: hw/nios2/ | |
196 | +F: disas/nios2.c | |
197 | + | |
190 | 198 | OpenRISC |
191 | 199 | M: Jia Liu <proljc@gmail.com> |
192 | 200 | S: Maintained |
@@ -63,6 +63,8 @@ int graphic_depth = 32; | ||
63 | 63 | #define QEMU_ARCH QEMU_ARCH_MIPS |
64 | 64 | #elif defined(TARGET_MOXIE) |
65 | 65 | #define QEMU_ARCH QEMU_ARCH_MOXIE |
66 | +#elif defined(TARGET_NIOS2) | |
67 | +#define QEMU_ARCH QEMU_ARCH_NIOS2 | |
66 | 68 | #elif defined(TARGET_OPENRISC) |
67 | 69 | #define QEMU_ARCH QEMU_ARCH_OPENRISC |
68 | 70 | #elif defined(TARGET_PPC) |
@@ -5935,6 +5935,8 @@ case "$target_name" in | ||
5935 | 5935 | ;; |
5936 | 5936 | moxie) |
5937 | 5937 | ;; |
5938 | + nios2) | |
5939 | + ;; | |
5938 | 5940 | or32) |
5939 | 5941 | TARGET_ARCH=openrisc |
5940 | 5942 | TARGET_BASE_ARCH=openrisc |
@@ -6140,6 +6142,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do | ||
6140 | 6142 | moxie*) |
6141 | 6143 | disas_config "MOXIE" |
6142 | 6144 | ;; |
6145 | + nios2) | |
6146 | + disas_config "NIOS2" | |
6147 | + ;; | |
6143 | 6148 | or32) |
6144 | 6149 | disas_config "OPENRISC" |
6145 | 6150 | ;; |
@@ -0,0 +1 @@ | ||
1 | +# Default configuration for nios2-linux-user |
@@ -0,0 +1,6 @@ | ||
1 | +# Default configuration for nios2-softmmu | |
2 | + | |
3 | +CONFIG_NIOS2=y | |
4 | +CONFIG_SERIAL=y | |
5 | +CONFIG_PTIMER=y | |
6 | +CONFIG_ALTERA_TIMER=y |
@@ -23,6 +23,7 @@ enum { | ||
23 | 23 | QEMU_ARCH_UNICORE32 = (1 << 14), |
24 | 24 | QEMU_ARCH_MOXIE = (1 << 15), |
25 | 25 | QEMU_ARCH_TRICORE = (1 << 16), |
26 | + QEMU_ARCH_NIOS2 = (1 << 17), | |
26 | 27 | }; |
27 | 28 | |
28 | 29 | extern const uint32_t arch_type; |
@@ -2901,6 +2901,9 @@ The binary format is detected automatically. | ||
2901 | 2901 | @command{qemu-mips} TODO. |
2902 | 2902 | @command{qemu-mipsel} TODO. |
2903 | 2903 | |
2904 | +@cindex user mode (NiosII) | |
2905 | +@command{qemu-nios2} TODO. | |
2906 | + | |
2904 | 2907 | @cindex user mode (PowerPC) |
2905 | 2908 | @command{qemu-ppc64abi32} TODO. |
2906 | 2909 | @command{qemu-ppc64} TODO. |