]> git.proxmox.com Git - mirror_qemu.git/commit
hw/riscv: Move the dtb load bits outside of create_fdt()
authorBin Meng <bmeng@tinylab.org>
Tue, 28 Feb 2023 07:45:22 +0000 (15:45 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Mar 2023 01:19:14 +0000 (17:19 -0800)
commitfc9ec3625f6dee52811c8150af994abe3c1668a3
tree95cf0cf74946828cc64835f6baa58ca318aadd73
parentd43d54ca2b27077974928ee7783a0ae1f9838a8d
hw/riscv: Move the dtb load bits outside of create_fdt()

Move the dtb load bits outside of create_fdt(), and put it explicitly
in sifive_u_machine_init() and virt_machine_init(). With such change
create_fdt() does exactly what its function name tells us.

Suggested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20230228074522.1845007-2-bmeng@tinylab.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
hw/riscv/sifive_u.c
hw/riscv/virt.c
include/hw/riscv/sifive_u.h