On 4/18/24 10:06, Jeff Law wrote:
ACK. Just one more note to the wider audience. I looked at QEMU's user
mode support for nios2 on/off over the last couple years. It never
seemed to work well enough be able to run the GCC testsuite reliably.
I looked at the problems with the nios2
Tomorrow I plan to push patches to mark the nios2 target as obsolete in
GCC 14.
Background: Intel has EOL'ed the Nios II processor IP and is now
directing their FPGA customers to a RISC-V platform instead.
On 11/17/23 01:46, Thomas Huth wrote:
Being orphan for so long in QEMU, I guess it makes sense to mark it as
deprecated here now. We can still reconsider if a new maintainer shows up...
Reviewed-by: Thomas Huth
I agree, but I'd be surprised if anybody steps forward, since Intel has
On 3/13/23 14:46, Philippe Mathieu-Daudé wrote:
+CodeSourcery folks
On 13/3/23 19:33, Thomas Huth wrote:
Marek and Chris haven't been active for Nios II since years
(the last time seems to have been in 2017), and we've got
unhandled severe Nios II bug tickets in the bug tracker since
a long
On 8/27/19 9:01 PM, Richard Henderson wrote:
On 8/27/19 6:42 PM, Sandra Loosemore wrote:
Sorry if that was not clear. The target is aarch64-none-elf with the provided
semihosting facilities in QEMU. The host is x86_64-linux-gnu. We deliberately
link against a pretty old glibc sysroot (looks
On 8/27/19 6:39 PM, Richard Henderson wrote:
On 8/27/19 5:26 PM, Sandra Loosemore wrote:
Yesterday I tried to build the recent 4.1 release system-mode QEMU for
aarch64-none-elf and ran into a compilation error in
./contrib/libvhost-user/libvhost-user.c.
Why are you attempting to compile qemu
Yesterday I tried to build the recent 4.1 release system-mode QEMU for
aarch64-none-elf and ran into a compilation error in
./contrib/libvhost-user/libvhost-user.c. It's complaining about
MADV_NOHUGEPAGE not being defined. I'm not familiar with that code or
even what it does; should that bit
to be omitted and
passing 0 to the callback in that case.
Signed-off-by: Sandra Loosemore
---
gdbstub.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index b92ba59..3e8bcd0 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1820,11 +1820,15 @@ static void
On 8/27/19 3:30 PM, no-re...@patchew.org wrote:
=== OUTPUT BEGIN ===
ERROR: space prohibited before that close parenthesis ')'
#37: FILE: gdbstub.c:1827:
+if (gdb_ctx->num_params >= 2 ) {
Arggghh, I am sorry. I fixed this and then screwed up and resent the
old patch over again.
to be omitted and
passing 0 to the callback in that case.
Signed-off-by: Sandra Loosemore
---
gdbstub.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index b92ba59..141568a 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1820,11 +1820,15 @@ static void
to be omitted and
passing 0 to the callback in that case.
Signed-off-by: Sandra Loosemore
---
gdbstub.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index b92ba59..141568a 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1820,11 +1820,15 @@ static void
checked m68k also and it had the
same bug. This set of patches fixes both of them.
There are no changes to the actual patches from V1, only more
informative commit messages with links to the respective semihosting
protocol documents in newlib.
Sandra Loosemore (2):
target/nios2: Fix bug
://www.sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=libgloss/nios2/nios2-semi.txt;h=ded3a093c03dbae84cb95b4cd45bc3e0d751eda2;hb=HEAD
for the HOSTED_EXIT syscall the parameter is passed directly in the register
instead of in a parameter block pointed to by the register.
Signed-off-by: Sandra
On 8/21/19 9:41 AM, Laurent Vivier wrote:
Could add this information in the commit messages of each patch?
Sure. V2 of the patches coming up shortly.
-Sandra
?p=newlib-cygwin.git;a=blob;f=libgloss/m68k/m68k-semi.txt;h=50520c15292aa7edf7eef28e09fd9202ce75b153;hb=HEAD
for the HOSTED_EXIT syscall the parameter is passed directly in the register
instead of in a parameter block pointed to by the register.
Signed-off-by: Sandra Loosemore
Reviewed
On 8/21/19 8:41 AM, Laurent Vivier wrote:
Le 21/08/2019 à 16:21, Sandra Loosemore a écrit :
This patch fixes a bug that caused semihosted exit to always return
status 0; it was incorrectly using the value of register R_ARG0 (which
contains the HOSTED_EXIT request number) instead of register
checked m68k also and it had the
same bug. This set of patches fixes both of them.
Sandra Loosemore (2):
target/nios2: Fix bug in semihosted exit handling
target/m68k: Fix bug in semihosted exit handling
target/m68k/m68k-semi.c | 4 ++--
target/nios2/nios2-semi.c | 4 ++--
2 files changed, 4
This patch fixes a bug that caused semihosted exit to always return
status 0; it was incorrectly using the value of D0 (which
contains the HOSTED_EXIT request number) instead of D1.
Signed-off-by: Sandra Loosemore
---
target/m68k/m68k-semi.c | 4 ++--
1 file changed, 2 insertions(+), 2
This patch fixes a bug that caused semihosted exit to always return
status 0; it was incorrectly using the value of register R_ARG0 (which
contains the HOSTED_EXIT request number) instead of register R_ARG1.
Signed-off-by: Sandra Loosemore
---
target/nios2/nios2-semi.c | 4 ++--
1 file changed
On 4/29/19 9:55 AM, Peter Maydell wrote:
On Wed, 3 Apr 2019 at 20:53, Sandra Loosemore wrote:
This is the seventh version of the patch series last posted here:
http://lists.nongnu.org/archive/html/qemu-devel/2019-03/msg06255.html
Changes since v6:
- Fixed block comment formatting for QEMU
On 4/4/19 1:00 AM, Peter Maydell wrote:
On Thu, 4 Apr 2019 at 13:44, Sandra Loosemore wrote:
On 4/3/19 11:59 PM, Peter Maydell wrote:
On Thu, 4 Apr 2019 at 02:53, Sandra Loosemore wrote:
This patch adds support for libgloss semihosting to Nios II bare-metal
emulation. The specification
On 4/3/19 11:59 PM, Peter Maydell wrote:
On Thu, 4 Apr 2019 at 02:53, Sandra Loosemore wrote:
This patch adds support for libgloss semihosting to Nios II bare-metal
emulation. The specification for the protocol can be found in the
libgloss sources.
Signed-off-by: Sandra Loosemore
Signed
This patch adds support for libgloss semihosting to Nios II bare-metal
emulation. The specification for the protocol can be found in the
libgloss sources.
Signed-off-by: Sandra Loosemore
Signed-off-by: Julian Brown
---
qemu-options.hx| 8 +-
target/nios2/Makefile.objs | 2
semihosting documentation.
Sandra Loosemore (2):
Add generic Nios II board.
Add Nios II semihosting support.
default-configs/nios2-softmmu.mak | 1 +
hw/nios2/Kconfig | 4 +
hw/nios2/Makefile.objs| 1 +
hw/nios2/boot.c | 18 +-
hw/nios2
.
Signed-off-by: Sandra Loosemore
Signed-off-by: Julian Brown
Signed-off-by: Andrew Jenner
Signed-off-by: Marek Vasut
---
default-configs/nios2-softmmu.mak | 1 +
hw/nios2/Kconfig | 4 ++
hw/nios2/Makefile.objs| 1 +
hw/nios2/boot.c | 18
.
Signed-off-by: Sandra Loosemore
Signed-off-by: Julian Brown
Signed-off-by: Andrew Jenner
Signed-off-by: Marek Vasut
---
default-configs/nios2-softmmu.mak | 1 +
hw/nios2/Kconfig | 4 ++
hw/nios2/Makefile.objs| 1 +
hw/nios2/boot.c | 17
This patch adds support for libgloss semihosting to Nios II bare-metal
emulation. The specification for the protocol can be found in the
libgloss sources.
Signed-off-by: Sandra Loosemore
Signed-off-by: Julian Brown
---
qemu-options.hx| 8 +-
target/nios2/Makefile.objs | 2
by the libgloss BSP have been removed from
the new nios2-generic-nommu emulation.
- FIXMEs in the semihosting code have been fixed, along with other nits
from review.
Also, the semihosting specification can now be found in libgloss.
Sandra Loosemore (2):
Add generic Nios II board.
Add Nios II
On 3/7/19 7:57 AM, Peter Maydell wrote:
diff --git a/hw/nios2/boot.c b/hw/nios2/boot.c
index 5f0ab2f..c697047 100644
--- a/hw/nios2/boot.c
+++ b/hw/nios2/boot.c
@@ -140,6 +140,7 @@ void nios2_load_kernel(Nios2CPU *cpu, hwaddr ddr_base,
uint64_t entry, low, high;
uint32_t
On 3/8/19 9:04 AM, Peter Maydell wrote:
On Fri, 8 Mar 2019 at 03:13, Sandra Loosemore wrote:
On 3/7/19 7:58 AM, Peter Maydell wrote:
On Wed, 13 Feb 2019 at 04:02, Sandra Loosemore wrote:
This patch adds support for libgloss semihosting to Nios II bare-metal
emulation.
Signed-off
On 3/7/19 7:58 AM, Peter Maydell wrote:
On Wed, 13 Feb 2019 at 04:02, Sandra Loosemore wrote:
This patch adds support for libgloss semihosting to Nios II bare-metal
emulation.
Signed-off-by: Sandra Loosemore
Signed-off-by: Julian Brown
Do you have a link to the spec that defines
On 2/24/19 10:04 PM, Sandra Loosemore wrote:
Ping?
http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03167.html
-Sandra
Ping?
http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03483.html
-Sandra
Ping?
http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03167.html
-Sandra
On 2/14/19 10:48 AM, Peter Maydell wrote:
On Tue, 12 Feb 2019 at 21:52, Sandra Loosemore wrote:
Per the GDB remote protocol documentation
https://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html#index-vKill-packet
the debug stub is expected to send a reply to the 'vKill' packet
-by: Sandra Loosemore
---
linux-user/nios2/cpu_loop.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c
index b96b1aa..5aa1eca 100644
--- a/linux-user/nios2/cpu_loop.c
+++ b/linux-user/nios2/cpu_loop.c
@@ -73,6 +73,12 @@ void cpu_loop
such as unwinding to work when binaries are linked to start at the
beginning of the address space.
The generic_nommu.c parts are by Andrew Jenner, based on code by Marek
Vasut.
Originally by Marek Vasut and Andrew Jenner.
Signed-off-by: Sandra Loosemore
Signed-off-by: Julian Brown
Signed-off-by: Andrew Jenner
that
should no longer be a blocking issue.
Sandra Loosemore (2):
Add generic Nios II board.
Add Nios II semihosting support.
default-configs/nios2-softmmu.mak | 1 +
hw/nios2/Makefile.objs| 1 +
hw/nios2/boot.c | 5 +-
hw/nios2/generic_nommu.c | 130
This patch adds support for libgloss semihosting to Nios II bare-metal
emulation.
Signed-off-by: Sandra Loosemore
Signed-off-by: Julian Brown
---
qemu-options.hx| 8 +-
target/nios2/Makefile.objs | 2 +-
target/nios2/cpu.h | 4 +-
target/nios2/helper.c | 11
fixes QEMU's gdb stub to conform to the
expected behavior.
Note that QEMU's existing handling of the legacy 'k' packet is
correct: in that case GDB does not expect a reply, and QEMU does not
send one.
Signed-off-by: Sandra Loosemore
---
gdbstub.c | 1 +
1 file changed, 1 insertion(+)
diff --git
On 09/12/2018 12:39 PM, Alex Bennée wrote:
Richard Henderson writes:
On 09/11/2018 02:29 PM, Sandra Loosemore wrote:
Without this patch, QEMU exits immediately when it execution stops at
a breakpoint, instead of reporting it to GDB.
Signed-off-by: Sandra Loosemore
---
linux-user/nios2
On 09/12/2018 11:49 AM, Richard Henderson wrote:
On 09/11/2018 02:29 PM, Sandra Loosemore wrote:
Without this patch, QEMU exits immediately when it execution stops at
a breakpoint, instead of reporting it to GDB.
Signed-off-by: Sandra Loosemore
---
linux-user/nios2/cpu_loop.c | 3 +++
1
Without this patch, QEMU exits immediately when it execution stops at
a breakpoint, instead of reporting it to GDB.
Signed-off-by: Sandra Loosemore
---
linux-user/nios2/cpu_loop.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c
If you need a Nios II GNU/Linux toolchain, I think the most recent
CodeBench Lite release will work:
https://sourcery.mentor.com/GNUToolchain/subscription42545
We're planning on adding user-mode QEMU to the upcoming 2018.11
release that's actually what I've been testing it for. Results on
Public bug reported:
This bug is reported against the 3.0 release.
I noticed that the GCC test gcc.dg/torture/tls/tls-test.c is failing
when run in user-mode qemu for nios2 target. The problem appears to be
that the thread-related syscalls are unimplemented in qemu. Here is
output from running
Public bug reported:
This bug is against the 3.0 release.
It appears that the signal handling parts of the nios2 user-mode
emulation have never really been completed or tested. Some examples of
failing tests from the GCC testsuite are gcc.dg/pr78185.c and
gcc.dg/cleanup-10.c.
Some problems
On 05/18/2018 03:35 PM, Sandra Loosemore wrote:
On 05/18/2018 02:19 PM, Julian Brown wrote:
On Fri, 18 May 2018 21:52:04 +0200
Marek Vasut wrote:
On 05/18/2018 09:23 PM, Julian Brown wrote:
This patch (by Sandra Loosemore, mildly rebased) adds support for
semihosting for Nios II bare-metal
On 05/18/2018 02:19 PM, Julian Brown wrote:
On Fri, 18 May 2018 21:52:04 +0200
Marek Vasut <ma...@denx.de> wrote:
On 05/18/2018 09:23 PM, Julian Brown wrote:
This patch (by Sandra Loosemore, mildly rebased) adds support for
semihosting for Nios II bare-metal emulation.
Signed-off-by:
On 01/16/2017 03:21 PM, Alexander Graf wrote:
+static void nios2_cpu_disas_set_info(CPUState *cpu, disassemble_info
*info)
+{
+/* NOTE: NiosII R2 is not supported yet. */
+info->mach = bfd_arch_nios2;
+#ifdef TARGET_WORDS_BIGENDIAN
+info->print_insn = print_insn_big_nios2;
+#else
+
this patch are:
include/opcode/nios2.h
include/opcode/nios2r1.h
include/opcode/nios2r2.h
opcodes/nios2-opc.c
opcodes/nios2-dis.c
Signed-off-by: Marek Vasut <ma...@denx.de>
Cc: Chris Wulff <crwu...@gmail.com>
Cc: Jeff Da Silva <jdasi...@altera.com>
Cc: Ley Foon Tan &
On 06/13/2016 01:40 PM, Marek Vasut wrote:
On 06/13/2016 09:15 PM, Eric Blake wrote:
On 06/13/2016 01:05 PM, Marek Vasut wrote:
Add nios2 disassembler support. This patch is composed from binutils files
from commit "Opcodes and assembler support for Nios II R2". The files from
binutils used in
51 matches
Mail list logo