Received: from eggs.gnu.org ([2001:4830:134:3::10]:46657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp1qZ-0004Bc-JW for qemu-devel@nongnu.org; Tue, 27 Sep 2016 19:31:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bp1qX-00056u-9o for qemu-devel@nongnu.org; Tue, 27 Sep 2016 19:31:35 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:36584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp1qW-00056O-Vs for qemu-devel@nongnu.org; Tue, 27 Sep 2016 19:31:33 -0400 From: Marek Vasut Date: Wed, 28 Sep 2016 01:30:49 +0200 Message-Id: <20160927233049.5429-7-marex@denx.de> In-Reply-To: <20160927233049.5429-1-marex@denx.de> References: <20160927233049.5429-1-marex@denx.de> Subject: [Qemu-devel] [PATCH 7/7] nios2: Add support for Nios-II R1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Marek Vasut , Chris Wulff , Jeff Da Silva , Ley Foon Tan , Sandra Loosemore , Yves Vandervennet 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 Cc: Chris Wulff Cc: Jeff Da Silva Cc: Ley Foon Tan Cc: Sandra Loosemore Cc: Yves Vandervennet --- MAINTAINERS | 8 ++++++++ arch_init.c | 2 ++ configure | 5 +++++ default-configs/nios2-linux-user.mak | 1 + default-configs/nios2-softmmu.mak | 6 ++++++ include/sysemu/arch_init.h | 1 + qemu-doc.texi | 3 +++ 7 files changed, 26 insertions(+) create mode 100644 default-configs/nios2-linux-user.mak create mode 100644 default-configs/nios2-softmmu.mak diff --git a/MAINTAINERS b/MAINTAINERS index f3c1f7f..ad366ca 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -158,6 +158,14 @@ S: Maintained F: target-moxie/ F: disas/moxie.c +NiosII +M: Chris Wulff +M: Marek Vasut +S: Maintained +F: target-nios2/ +F: hw/nios2/ +F: disas/nios2.c + OpenRISC M: Jia Liu S: Maintained diff --git a/arch_init.c b/arch_init.c index 5cc58b2..20d83ff 100644 --- a/arch_init.c +++ b/arch_init.c @@ -64,6 +64,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) diff --git a/configure b/configure index 8fa62ad..21d1e34 100755 --- a/configure +++ b/configure @@ -5669,6 +5669,8 @@ case "$target_name" in ;; moxie) ;; + nios2) + ;; or32) TARGET_ARCH=openrisc TARGET_BASE_ARCH=openrisc @@ -5862,6 +5864,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 index 0000000..5be3eb7 --- /dev/null +++ b/default-configs/nios2-linux-user.mak @@ -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 index 0000000..74dc70c --- /dev/null +++ b/default-configs/nios2-softmmu.mak @@ -0,0 +1,6 @@ +# Default configuration for nios2-softmmu + +CONFIG_NIOS2=y +CONFIG_SERIAL=y +CONFIG_PTIMER=y +CONFIG_ALTERA_TIMER=y diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 1c9dad1..fe60e11 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -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; diff --git a/qemu-doc.texi b/qemu-doc.texi index f37fd31..1e40d09 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -2856,6 +2856,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. -- 2.9.3