All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <rth@twiddle.net>, Marek Vasut <marex@denx.de>,
	Chris Wulff <crwulff@gmail.com>,
	Jeff Da Silva <jdasilva@altera.com>,
	Ley Foon Tan <lftan@altera.com>,
	Sandra Loosemore <sandra@codesourcery.com>,
	Yves Vandervennet <yvanderv@altera.com>
Subject: [Qemu-devel] [PATCH V3 7/7] nios2: Add support for Nios-II R1
Date: Tue, 18 Oct 2016 23:50:31 +0200	[thread overview]
Message-ID: <20161018215031.2575-7-marex@denx.de> (raw)
In-Reply-To: <20161018215031.2575-1-marex@denx.de>

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>
---
V3: Checkpatch cleanup
---
 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 b01fec0..d423cf6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -168,6 +168,14 @@ F: disas/moxie.c
 F: hw/moxie/
 F: default-configs/moxie-softmmu.mak
 
+NiosII
+M: Chris Wulff <crwulff@gmail.com>
+M: Marek Vasut <marex@denx.de>
+S: Maintained
+F: target-nios2/
+F: hw/nios2/
+F: disas/nios2.c
+
 OpenRISC
 M: Jia Liu <proljc@gmail.com>
 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 dd9e679..a3ff3dc 100755
--- a/configure
+++ b/configure
@@ -5758,6 +5758,8 @@ case "$target_name" in
   ;;
   moxie)
   ;;
+  nios2)
+  ;;
   or32)
     TARGET_ARCH=openrisc
     TARGET_BASE_ARCH=openrisc
@@ -5951,6 +5953,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 023c140..f4654a7 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -2860,6 +2860,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

  parent reply	other threads:[~2016-10-18 21:51 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18 21:50 [Qemu-devel] [PATCH V3 1/7] nios2: Add disas entries Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 2/7] nios2: Add architecture emulation support Marek Vasut
2016-10-18 23:04   ` Richard Henderson
2016-10-19  3:23     ` Marek Vasut
2016-10-19 15:50       ` Richard Henderson
2016-10-20  3:01         ` Marek Vasut
2016-10-20  5:05           ` Richard Henderson
2016-10-20 13:39             ` Marek Vasut
2016-10-19  3:29   ` [Qemu-devel] [PATCH V4 " Marek Vasut
2016-10-20 13:44     ` [Qemu-devel] [PATCH V5 " Marek Vasut
2016-10-20 14:35       ` Richard Henderson
2016-10-23  3:01         ` Marek Vasut
2016-10-23  4:20           ` Richard Henderson
2016-10-25 15:58             ` Marek Vasut
2016-10-25 19:57       ` [Qemu-devel] [PATCH V6 " Marek Vasut
2016-11-07  3:58         ` [Qemu-devel] [V6, " Guenter Roeck
2016-11-07 18:14           ` Marek Vasut
2016-11-07 19:54             ` Guenter Roeck
2016-11-07 20:22               ` Romain Naour
2016-11-07 21:40                 ` Guenter Roeck
2016-11-12 21:50               ` Marek Vasut
2016-11-12 23:25                 ` Guenter Roeck
2016-11-13 12:01                   ` Marek Vasut
2016-11-13 12:43                     ` Marek Vasut
2016-11-13 16:25                       ` Guenter Roeck
2016-11-13 22:56                         ` Marek Vasut
2016-11-13 16:09                     ` Guenter Roeck
2016-11-13 22:58                       ` Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 3/7] nios2: Add usermode binaries emulation Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 4/7] nios2: Add IIC interrupt controller emulation Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 5/7] nios2: Add periodic timer emulation Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 6/7] nios2: Add Altera 10M50 GHRD emulation Marek Vasut
2016-11-07 23:45   ` [Qemu-devel] [V3,6/7] " Guenter Roeck
2016-10-18 21:50 ` Marek Vasut [this message]
2016-11-07  3:55 ` [Qemu-devel] [V3,1/7] nios2: Add disas entries Guenter Roeck
2016-11-07  4:17   ` Sandra Loosemore
2016-11-07  4:55     ` Alexey Kardashevskiy
2016-11-07  6:33     ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161018215031.2575-7-marex@denx.de \
    --to=marex@denx.de \
    --cc=crwulff@gmail.com \
    --cc=jdasilva@altera.com \
    --cc=lftan@altera.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=sandra@codesourcery.com \
    --cc=yvanderv@altera.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.