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

Julian Brown posted 2 patches 7 years, 8 months ago
Only 0 patches received!
There is a newer version of this series
hw/nios2/Makefile.objs     |   2 +-
hw/nios2/boot.c            |   5 +-
hw/nios2/generic_nommu.c   | 128 ++++++++++++++
qemu-options.hx            |   8 +-
target/nios2/Makefile.objs |   2 +-
target/nios2/cpu.h         |   4 +-
target/nios2/helper.c      |  11 ++
target/nios2/nios2-semi.c  | 429 +++++++++++++++++++++++++++++++++++++++++++++
8 files changed, 581 insertions(+), 8 deletions(-)
create mode 100644 hw/nios2/generic_nommu.c
create mode 100644 target/nios2/nios2-semi.c
[Qemu-devel] [PATCH 0/2] Nios II generic board config and semihosting support
Posted by Julian Brown 7 years, 8 months ago
These patches add support for a generic MMU-less Nios II board and
add semihosting support for Nios II, the latter based on the m68k
semihosting implementation.  These are useful for testing "bare metal"
Nios II toolchains, given appropriate startup code.  I've tested our
internal builds successfully with these patches.

OK, or any comments?

Thanks,

Julian

Julian Brown (2):
  Add generic Nios II board.
  Add Nios II semihosting support.

 hw/nios2/Makefile.objs     |   2 +-
 hw/nios2/boot.c            |   5 +-
 hw/nios2/generic_nommu.c   | 128 ++++++++++++++
 qemu-options.hx            |   8 +-
 target/nios2/Makefile.objs |   2 +-
 target/nios2/cpu.h         |   4 +-
 target/nios2/helper.c      |  11 ++
 target/nios2/nios2-semi.c  | 429 +++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 581 insertions(+), 8 deletions(-)
 create mode 100644 hw/nios2/generic_nommu.c
 create mode 100644 target/nios2/nios2-semi.c

-- 
2.8.1

[Qemu-devel] [PATCH 1/2] Add generic Nios II board.
Posted by Julian Brown 7 years, 8 months ago
This patch adds support for a generic MMU-less Nios II board that can
be used e.g. for bare-metal compiler testing.  Nios II booting is also
tweaked so that bare-metal binaries start executing in RAM starting at
0x00000000, rather than an alias at 0xc0000000, which allows features
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.

Signed-off-by: Julian Brown <julian@codesourcery.com>
---
 hw/nios2/Makefile.objs   |   2 +-
 hw/nios2/boot.c          |   5 +-
 hw/nios2/generic_nommu.c | 128 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 133 insertions(+), 2 deletions(-)
 create mode 100644 hw/nios2/generic_nommu.c

Re: [Qemu-devel] [PATCH 1/2] Add generic Nios II board.
Posted by Philippe Mathieu-Daudé 7 years, 8 months ago
Hi Julian,

You should Cc the NiosII maintainers for faster review (done).

(From
https://wiki.qemu.org/Contribute/SubmitAPatch#CC_the_relevant_maintainer:)

$ ./scripts/get_maintainer.pl -f hw/nios2/
Chris Wulff <crwulff@gmail.com> (maintainer:NiosII)
Marek Vasut <marex@denx.de> (maintainer:NiosII)

On 05/17/2018 07:38 PM, Julian Brown wrote:
> 
> This patch adds support for a generic MMU-less Nios II board that can
> be used e.g. for bare-metal compiler testing.  Nios II booting is also
> tweaked so that bare-metal binaries start executing in RAM starting at
> 0x00000000, rather than an alias at 0xc0000000, which allows features
> 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.

Can you get/add their S-o-b?

> Signed-off-by: Julian Brown <julian@codesourcery.com>
> ---
>  hw/nios2/Makefile.objs   |   2 +-
>  hw/nios2/boot.c          |   5 +-
>  hw/nios2/generic_nommu.c | 128 +++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 133 insertions(+), 2 deletions(-)
>  create mode 100644 hw/nios2/generic_nommu.c

It seems your email client messed your patch up, see
https://wiki.qemu.org/Contribute/SubmitAPatch#Do_not_send_as_an_attachment

Can you resend?

Regards,

Phil.

[Qemu-devel] [PATCH 2/2] Add Nios II semihosting support.
Posted by Julian Brown 7 years, 8 months ago
This patch (by Sandra Loosemore, mildly rebased) adds support for
semihosting for Nios II bare-metal emulation.

Signed-off-by: Julian Brown <julian@codesourcery.com>
---
 qemu-options.hx            |   8 +-
 target/nios2/Makefile.objs |   2 +-
 target/nios2/cpu.h         |   4 +-
 target/nios2/helper.c      |  11 ++
 target/nios2/nios2-semi.c  | 429 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 448 insertions(+), 6 deletions(-)
 create mode 100644 target/nios2/nios2-semi.c