Skip to content

Allow loading a no MMU kernel

Alistair Francis qemu-devel qemu-riscv 2 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 13 repliesApplied
  2. v14 patches 7 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4hw/riscv: sifive_u: Allow specifying the CPUhw/riscv/sifive_u.c include/hw/riscv/sifive_u.h+14 -52 replies
2/4hw/riscv: Return the end address of the loaded firmwarehw/riscv/boot.c include/hw/riscv/boot.h+21 -152 replies
3/4hw/riscv: Add a riscv_is_32_bit() functionhw/riscv/boot.c include/hw/riscv/boot.h+11 -02 replies
4/4hw/riscv: Load the kernel after the firmwarehw/riscv/boot.c hw/riscv/opentitan.c hw/riscv/sifive_e.c +4 more+45 -156 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchBin MengPalmer Dabbelt
1/4R-b T-b R-b
2/4R-b T-b R-b
3/4R-b T-b R-b
4/4R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Allow loading a no MMU kernel

This series allows loading a noMMU kernel using the -kernel option. Currently if using -kernel QEMU assumes you also have firmware and loads the kernel at a hardcoded offset. This series changes that so we only load the kernel at an offset if a firmware (-bios) was loaded.

This series also adds a function to check if the CPU is 32-bit. This is a step towards running 32-bit and 64-bit CPUs on the 64-bit RISC-V build by using run time checks instead of compile time checks. We also allow the user to sepcify a CPU for the sifive_u machine.

Alistair Francis (4):
hw/riscv: sifive_u: Allow specifying the CPU hw/riscv: Return the end address of the loaded firmware hw/riscv: Add a riscv_is_32_bit() function hw/riscv: Load the kernel after the firmware

 include/hw/riscv/boot.h     | 13 ++++++---
 include/hw/riscv/sifive_u.h |  1 +
 hw/riscv/boot.c             | 56 ++++++++++++++++++++++++++-----------
 hw/riscv/opentitan.c        |  3 +-
 hw/riscv/sifive_e.c         |  3 +-
 hw/riscv/sifive_u.c         | 28 ++++++++++++++-----
 hw/riscv/spike.c            | 11 ++++++--
 hw/riscv/virt.c             | 11 ++++++--
 8 files changed, 91 insertions(+), 35 deletions(-)
Signature · 1 line
2.28.0