Skip to content

riscv_load_fdt() semantics change

Daniel Henrique Barboza qemu-devel qemu-riscv 5 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. v5 Latest3 patches 2 repliesApplied
  2. v43 patches 10 repliesSuperseded
  3. v37 patches 9 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches8 repliesSuperseded
v110 patches9 repliesApplied

Changes in v5 from the cover letter

- patch 1:
- remove the fdt_pack() related lines instead of letting patch 2 do it
- patch 2:
- make riscv_compute_fdt_addr() return an uint64_t
- patch 3:
- do not change riscv_compute_fdt_addr() return type to hwaddr
- fix comment typo
- use a ternary instead of if/else in dram_end
- v4 link: https://lists.gnu.org/archive/html/qemu-devel/2023-01/msg05828.html

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3hw/riscv/boot.c: calculate fdt size after fdt_pack()hw/riscv/boot.c+6 -40 replies
2/3hw/riscv: split fdt address calculation from fdt loadhw/riscv/boot.c hw/riscv/microchip_pfsoc.c hw/riscv/sifive_u.c +3 more+43 -170 replies
3/3hw/riscv: change riscv_compute_fdt_addr() semanticshw/riscv/boot.c hw/riscv/microchip_pfsoc.c hw/riscv/sifive_u.c +3 more+32 -171 reply

Reviews trailers per patch

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

PatchAlistair Francis
1/3R-b
2/3R-b
3/3R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/3] riscv_load_fdt() semantics change

Hi,

This version contains changed proposed by Bin in the v4 review.

Patches are based on riscv-to-apply.next.

Changes from v4:
- patch 1:
- remove the fdt_pack() related lines instead of letting patch 2 do it
- patch 2:
- make riscv_compute_fdt_addr() return an uint64_t
- patch 3:
- do not change riscv_compute_fdt_addr() return type to hwaddr
- fix comment typo
- use a ternary instead of if/else in dram_end
- v4 link: https://lists.gnu.org/archive/html/qemu-devel/2023-01/msg05828.html

Daniel Henrique Barboza (3):
hw/riscv/boot.c: calculate fdt size after fdt_pack() hw/riscv: split fdt address calculation from fdt load hw/riscv: change riscv_compute_fdt_addr() semantics

 hw/riscv/boot.c            | 53 +++++++++++++++++++++++++++++++-------
 hw/riscv/microchip_pfsoc.c |  7 +++--
 hw/riscv/sifive_u.c        |  8 +++---
 hw/riscv/spike.c           |  7 ++---
 hw/riscv/virt.c            |  8 +++---
 include/hw/riscv/boot.h    |  4 ++-
 6 files changed, 65 insertions(+), 22 deletions(-)
Signature · 1 line
2.39.1