Re: Deprecation/removal of nios2 target support

2024-04-18 Thread Sandra Loosemore
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

Deprecation/removal of nios2 target support

2024-04-17 Thread Sandra Loosemore
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.

Re: [PATCH-for-8.2] target/nios2: Deprecate the Nios II architecture

2023-11-17 Thread Sandra Loosemore
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

Re: [PATCH] MAINTAINERS: Mark the Nios II CPU as orphan

2023-03-14 Thread Sandra Loosemore
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

Re: [Qemu-devel] libvhost-user: undefined reference to MADV_NOHUGEPAGE

2019-08-27 Thread Sandra Loosemore
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

Re: [Qemu-devel] libvhost-user: undefined reference to MADV_NOHUGEPAGE

2019-08-27 Thread Sandra Loosemore
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

[Qemu-devel] libvhost-user: undefined reference to MADV_NOHUGEPAGE

2019-08-27 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH V3] gdbstub: Fix handler for 'F' packet

2019-08-27 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH V2] gdbstub: Fix handler for 'F' packet

2019-08-27 Thread Sandra Loosemore
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.

[Qemu-devel] [PATCH V2] gdbstub: Fix handler for 'F' packet

2019-08-27 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH] gdbstub: Fix handler for 'F' packet

2019-08-27 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH V2 0/2] Fix bug in nios2 and m68k semihosting

2019-08-21 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH V2 1/2] target/nios2: Fix bug in semihosted exit handling

2019-08-21 Thread Sandra Loosemore
://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

Re: [Qemu-devel] [PATCH 1/2] target/nios2: Fix bug in semihosted exit handling

2019-08-21 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH V2 2/2] target/m68k: Fix bug in semihosted exit handling

2019-08-21 Thread Sandra Loosemore
?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

Re: [Qemu-devel] [PATCH 1/2] target/nios2: Fix bug in semihosted exit handling

2019-08-21 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH 0/2] Fix bug in nios2 and m68k semihosting

2019-08-21 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH 2/2] target/m68k: Fix bug in semihosted exit handling

2019-08-21 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH 1/2] target/nios2: Fix bug in semihosted exit handling

2019-08-21 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v7 0/2] Nios II generic board config and semihosting

2019-04-29 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v7 2/2] Add Nios II semihosting support.

2019-04-04 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v7 2/2] Add Nios II semihosting support.

2019-04-04 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH v7 2/2] Add Nios II semihosting support.

2019-04-03 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH v7 0/2] Nios II generic board config and semihosting

2019-04-03 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH v7 1/2] Add generic Nios II board.

2019-04-03 Thread Sandra Loosemore
. 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

[Qemu-devel] [PATCH v6 1/2] Add generic Nios II board.

2019-03-21 Thread Sandra Loosemore
. 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

[Qemu-devel] [PATCH v6 2/2] Add Nios II semihosting support.

2019-03-21 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH v6 0/2] Nios II generic board config and semihosting

2019-03-21 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v5 1/2] Add generic Nios II board.

2019-03-08 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v5 2/2] Add Nios II semihosting support.

2019-03-08 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v5 2/2] Add Nios II semihosting support.

2019-03-07 Thread Sandra Loosemore
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

Re: [Qemu-devel] [ping**2] [PATCH v5 0/2] Nios II generic board config and semihosting

2019-03-06 Thread Sandra Loosemore
On 2/24/19 10:04 PM, Sandra Loosemore wrote: Ping? http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03167.html -Sandra

[Qemu-devel] [ping] [PATCH] Fix breakpoint support in Nios II user-mode emulation.

2019-02-24 Thread Sandra Loosemore
Ping? http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03483.html -Sandra

[Qemu-devel] [ping] [PATCH v5 0/2] Nios II generic board config and semihosting

2019-02-24 Thread Sandra Loosemore
Ping? http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03167.html -Sandra

Re: [Qemu-devel] [PATCH] gdbstub: Send a reply to the vKill packet.

2019-02-14 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH] Fix breakpoint support in Nios II user-mode emulation.

2019-02-13 Thread Sandra Loosemore
-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

[Qemu-devel] [PATCH v5 1/2] Add generic Nios II board.

2019-02-12 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH v5 0/2] Nios II generic board config and semihosting

2019-02-12 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH v5 2/2] Add Nios II semihosting support.

2019-02-12 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH] gdbstub: Send a reply to the vKill packet.

2019-02-12 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH] Fix breakpoints in nios2 user-mode emulation.

2018-09-12 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH] Fix breakpoints in nios2 user-mode emulation.

2018-09-12 Thread Sandra Loosemore
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

[Qemu-devel] [PATCH] Fix breakpoints in nios2 user-mode emulation.

2018-09-11 Thread Sandra Loosemore
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

[Qemu-devel] [Bug 1791796] Re: unimplemented thread syscalls in nios2 user-mode emulation

2018-09-11 Thread Sandra Loosemore
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

[Qemu-devel] [Bug 1791796] [NEW] unimplemented thread syscalls in nios2 user-mode emulation

2018-09-10 Thread Sandra Loosemore
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

[Qemu-devel] [Bug 1791763] [NEW] broken signal handling in nios2 user-mode emulation

2018-09-10 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v3 2/2] Add Nios II semihosting support.

2018-08-02 Thread Sandra Loosemore
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

Re: [Qemu-devel] [PATCH v3 2/2] Add Nios II semihosting support.

2018-05-18 Thread Sandra Loosemore
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:

Re: [Qemu-devel] [PATCH V8 2/7] nios2: Add architecture emulation support

2017-01-16 Thread Sandra Loosemore
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 +

Re: [Qemu-devel] [V3,1/7] nios2: Add disas entries

2016-11-06 Thread Sandra Loosemore
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 &

Re: [Qemu-devel] [PATCH 1/7] nios2: Add disas entries

2016-06-13 Thread Sandra Loosemore
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