Hi,
This new version contains changes suggested by Zoltan in the v5 review.
Changes from v5:
- shortened the 'machine->fdt' comment in all relevant patches
- patch 6:
- changed sam460ex_load_device_tree() to receive a MachineState
pointer
- v5 link: https://lists.gnu.org/archive/html/qemu-devel/2022-09/msg00476.html
Daniel Henrique Barboza (14):
hw/arm: do not free machine->fdt in arm_load_dtb()
hw/microblaze: set machine->fdt in microblaze_load_dtb()
hw/nios2: set machine->fdt in nios2_load_dtb()
hw/ppc: set machine->fdt in ppce500_load_device_tree()
hw/ppc: set machine->fdt in bamboo_load_device_tree()
hw/ppc: set machine->fdt in sam460ex_load_device_tree()
hw/ppc: set machine->fdt in xilinx_load_device_tree()
hw/ppc: set machine->fdt in pegasos2_machine_reset()
hw/ppc: set machine->fdt in pnv_reset()
hw/ppc: set machine->fdt in spapr machine
hw/riscv: set machine->fdt in sifive_u_machine_init()
hw/riscv: set machine->fdt in spike_board_init()
hw/xtensa: set machine->fdt in xtfpga_init()
qmp/hmp, device_tree.c: introduce dumpdtb
hmp-commands.hx | 15 +++++++++++++++
hw/arm/boot.c | 3 ++-
hw/microblaze/boot.c | 8 +++++++-
hw/microblaze/meson.build | 2 +-
hw/nios2/boot.c | 8 +++++++-
hw/nios2/meson.build | 2 +-
hw/ppc/e500.c | 13 ++++++++++++-
hw/ppc/pegasos2.c | 4 ++++
hw/ppc/pnv.c | 8 +++++++-
hw/ppc/ppc440_bamboo.c | 11 ++++++++++-
hw/ppc/sam460ex.c | 21 +++++++++++----------
hw/ppc/spapr.c | 3 +++
hw/ppc/spapr_hcall.c | 8 ++++++++
hw/ppc/virtex_ml507.c | 8 +++++++-
hw/riscv/sifive_u.c | 3 +++
hw/riscv/spike.c | 6 ++++++
hw/xtensa/meson.build | 2 +-
hw/xtensa/xtfpga.c | 6 +++++-
include/sysemu/device_tree.h | 1 +
monitor/misc.c | 1 +
qapi/machine.json | 18 ++++++++++++++++++
softmmu/device_tree.c | 31 +++++++++++++++++++++++++++++++
22 files changed, 161 insertions(+), 21 deletions(-)
--
2.37.2