aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBin Meng <bmeng@tinylab.org>2023-02-28 15:45:22 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2023-03-01 17:19:14 -0800
commitfc9ec3625f6dee52811c8150af994abe3c1668a3 (patch)
tree95cf0cf74946828cc64835f6baa58ca318aadd73 /include
parentd43d54ca2b27077974928ee7783a0ae1f9838a8d (diff)
downloadqemu-fc9ec3625f6dee52811c8150af994abe3c1668a3.zip
qemu-fc9ec3625f6dee52811c8150af994abe3c1668a3.tar.gz
qemu-fc9ec3625f6dee52811c8150af994abe3c1668a3.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/riscv/sifive_u.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/riscv/sifive_u.h b/include/hw/riscv/sifive_u.h
index 65af306..0696f85 100644
--- a/include/hw/riscv/sifive_u.h
+++ b/include/hw/riscv/sifive_u.h
@@ -68,6 +68,7 @@ typedef struct SiFiveUState {
/*< public >*/
SiFiveUSoCState soc;
+ int fdt_size;
bool start_in_flash;
uint32_t msel;