All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4]  Allow loading a no MMU kernel
@ 2020-10-02 15:31 ` Alistair Francis
  0 siblings, 0 replies; 24+ messages in thread
From: Alistair Francis @ 2020-10-02 15:31 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: alistair.francis, palmer, alistair23

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     | 11 +++++----
 include/hw/riscv/sifive_u.h |  1 +
 hw/riscv/boot.c             | 47 ++++++++++++++++++++++++-------------
 hw/riscv/opentitan.c        |  3 ++-
 hw/riscv/sifive_e.c         |  3 ++-
 hw/riscv/sifive_u.c         | 31 ++++++++++++++++++------
 hw/riscv/spike.c            | 14 ++++++++---
 hw/riscv/virt.c             | 14 ++++++++---
 8 files changed, 89 insertions(+), 35 deletions(-)

-- 
2.28.0



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-10-13 16:08 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 15:31 [PATCH v1 0/4] Allow loading a no MMU kernel Alistair Francis
2020-10-02 15:31 ` Alistair Francis
2020-10-02 15:31 ` [PATCH v1 1/4] hw/riscv: sifive_u: Allow specifying the CPU Alistair Francis
2020-10-02 15:31   ` Alistair Francis
2020-10-09 10:03   ` Bin Meng
2020-10-09 10:03     ` Bin Meng
2020-10-02 15:31 ` [PATCH v1 2/4] hw/riscv: Return the end address of the loaded firmware Alistair Francis
2020-10-02 15:31   ` Alistair Francis
2020-10-09 10:13   ` Bin Meng
2020-10-09 10:13     ` Bin Meng
2020-10-09 22:09     ` Alistair Francis
2020-10-09 22:09       ` Alistair Francis
2020-10-02 15:31 ` [PATCH v1 3/4] hw/riscv: Add a riscv_is_32_bit() function Alistair Francis
2020-10-02 15:31   ` Alistair Francis
2020-10-02 15:31 ` [PATCH v1 4/4] hw/riscv: Load the kernel after the firmware Alistair Francis
2020-10-02 15:31   ` Alistair Francis
2020-10-09 10:29   ` Bin Meng
2020-10-09 10:29     ` Bin Meng
2020-10-13 15:55     ` Alistair Francis
2020-10-13 15:55       ` Alistair Francis
2020-10-09  9:53 ` [PATCH v1 0/4] Allow loading a no MMU kernel Bin Meng
2020-10-09  9:53   ` Bin Meng
2020-10-09 22:32   ` Alistair Francis
2020-10-09 22:32     ` Alistair Francis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.