[PATCH v2 0/4] hw/riscv: Boot setup improvements

Joel Stanley posted 4 patches 2 days, 12 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260415064838.652297-1-joel@jms.id.au
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Chao Liu <chao.liu.zevorn@gmail.com>, Vijai Kumar K <vijai@behindbytes.com>, Ran Wang <wangran@bosc.ac.cn>
include/hw/riscv/boot.h    | 14 +++++++-
hw/riscv/boot.c            | 73 ++++++++++++++++++++++++++++++++------
hw/riscv/microchip_pfsoc.c |  6 ++--
hw/riscv/opentitan.c       |  6 ++--
hw/riscv/shakti_c.c        |  6 +++-
hw/riscv/sifive_u.c        |  3 +-
hw/riscv/spike.c           |  6 ++--
hw/riscv/virt.c            |  7 ++--
hw/riscv/xiangshan_kmh.c   |  6 +++-
9 files changed, 104 insertions(+), 23 deletions(-)
[PATCH v2 0/4] hw/riscv: Boot setup improvements
Posted by Joel Stanley 2 days, 12 hours ago
v2: Tweak commit message in patch 4, add Daniel's r-b

The first two patches improve the boot infrastructure for riscv so
machines with split memory regions can load payloads into the correct
region. 

The second two patches improve usability when attempting to run opensbi
in less common situations.

This series are prerequisites for the Atlantis machine.

Nicholas Piggin (4):
  hw/riscv/boot: Describe discontiguous memory in boot_info
  hw/riscv/boot: Account for discontiguous memory when loading firmware
  hw/riscv/boot: Warn if a ELF format file is loaded as a binary
  hw/riscv/boot: Provide a simple halting payload

 include/hw/riscv/boot.h    | 14 +++++++-
 hw/riscv/boot.c            | 73 ++++++++++++++++++++++++++++++++------
 hw/riscv/microchip_pfsoc.c |  6 ++--
 hw/riscv/opentitan.c       |  6 ++--
 hw/riscv/shakti_c.c        |  6 +++-
 hw/riscv/sifive_u.c        |  3 +-
 hw/riscv/spike.c           |  6 ++--
 hw/riscv/virt.c            |  7 ++--
 hw/riscv/xiangshan_kmh.c   |  6 +++-
 9 files changed, 104 insertions(+), 23 deletions(-)

-- 
2.47.3
Re: [PATCH v2 0/4] hw/riscv: Boot setup improvements
Posted by Alistair Francis 1 day, 18 hours ago
On Wed, Apr 15, 2026 at 4:50 PM Joel Stanley <joel@jms.id.au> wrote:
>
> v2: Tweak commit message in patch 4, add Daniel's r-b
>
> The first two patches improve the boot infrastructure for riscv so
> machines with split memory regions can load payloads into the correct
> region.
>
> The second two patches improve usability when attempting to run opensbi
> in less common situations.
>
> This series are prerequisites for the Atlantis machine.
>
> Nicholas Piggin (4):
>   hw/riscv/boot: Describe discontiguous memory in boot_info
>   hw/riscv/boot: Account for discontiguous memory when loading firmware
>   hw/riscv/boot: Warn if a ELF format file is loaded as a binary
>   hw/riscv/boot: Provide a simple halting payload

I have pulled out and applied patch 3 to help, as I know this series
and a few others from you got lost with some mailing list issues I
had.

In future please ping patches if you think they have been ignored,
https://www.qemu.org/docs/master/devel/submitting-a-patch.html#if-your-patch-seems-to-have-been-ignored

Alistair

>
>  include/hw/riscv/boot.h    | 14 +++++++-
>  hw/riscv/boot.c            | 73 ++++++++++++++++++++++++++++++++------
>  hw/riscv/microchip_pfsoc.c |  6 ++--
>  hw/riscv/opentitan.c       |  6 ++--
>  hw/riscv/shakti_c.c        |  6 +++-
>  hw/riscv/sifive_u.c        |  3 +-
>  hw/riscv/spike.c           |  6 ++--
>  hw/riscv/virt.c            |  7 ++--
>  hw/riscv/xiangshan_kmh.c   |  6 +++-
>  9 files changed, 104 insertions(+), 23 deletions(-)
>
> --
> 2.47.3
>
>