Skip to content

Consolidate all kernel init in load_kernel()

Daniel Henrique Barboza qemu-devel qemu-riscv 6 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. v11 Latest3 patches 7 repliesApplied
  2. v103 patches 10 repliesSuperseded
  3. v93 patches 5 repliesApplied
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v83 patches7 repliesSuperseded
v73 patches6 repliesSuperseded
v62 patches2 repliesSuperseded

Changes in v10 from the cover letter

- patch 1:
- extract the lower 32 bits of kernel_entry for all cases, not just the one from load_elf_ram_sym().
- v10 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg00529.html

Patches in v11 Applied

#Subject and filesSizeRepliesApplied
1/3hw/riscv: handle 32 bit CPUs kernel_entry in riscv_load_kernel()hw/riscv/boot.c hw/riscv/microchip_pfsoc.c hw/riscv/opentitan.c +5 more+30 -92 replies
2/3hw/riscv/boot.c: consolidate all kernel init in riscv_load_kernel()hw/riscv/boot.c hw/riscv/microchip_pfsoc.c hw/riscv/opentitan.c +5 more+20 -424 replies
3/3hw/riscv/boot.c: make riscv_load_initrd() statichw/riscv/boot.c include/hw/riscv/boot.h+40 -410 replies

Reviews trailers per patch

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

PatchBin MengAlistair FrancisPhilippe Mathieu-Daudé
1/3R-b R-b
2/3R-b R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v11 thread

Cover letter [PATCH v11 0/3] Consolidate all kernel init in load_kernel()

Hi,

In this new version patch 1 was changed to extract the lower 32 bits of the 64 bit address when running 32 bit CPUs. The difference now, in comparison with what was being done in version 6, is that now we're doing that for all uses of kernel_entry, not just the one resulting from load_elf_ram_sym().

This will ensure that the current behavior, that is now based on the fact that load_initrd() uses the target_ulong returned by load_kernel(), that happens to be a 32 bit var when running in 32 bit targets, is preserved by doing a explicit 32 bit extract of the uint64_t kernel_entry for 32 bit CPUs.

Changes in v10:
- patch 1:
- extract the lower 32 bits of kernel_entry for all cases, not just the one from load_elf_ram_sym().
- v10 link: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg00529.html

Daniel Henrique Barboza (3):
hw/riscv: handle 32 bit CPUs kernel_entry in riscv_load_kernel() hw/riscv/boot.c: consolidate all kernel init in riscv_load_kernel() hw/riscv/boot.c: make riscv_load_initrd() static

 hw/riscv/boot.c            | 97 ++++++++++++++++++++++++--------------
 hw/riscv/microchip_pfsoc.c | 12 +----
 hw/riscv/opentitan.c       |  4 +-
 hw/riscv/sifive_e.c        |  4 +-
 hw/riscv/sifive_u.c        | 12 +----
 hw/riscv/spike.c           | 14 ++----
 hw/riscv/virt.c            | 12 +----
 include/hw/riscv/boot.h    |  3 +-
 8 files changed, 78 insertions(+), 80 deletions(-)
Signature · 1 line
2.39.1