diff options
| author | Bin Meng <bmeng@tinylab.org> | 2023-02-28 15:45:22 +0800 |
|---|---|---|
| committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-01 17:19:14 -0800 |
| commit | fc9ec3625f6dee52811c8150af994abe3c1668a3 (patch) | |
| tree | 95cf0cf74946828cc64835f6baa58ca318aadd73 /include/hw | |
| parent | d43d54ca2b27077974928ee7783a0ae1f9838a8d (diff) | |
| download | focaccia-qemu-fc9ec3625f6dee52811c8150af994abe3c1668a3.tar.gz focaccia-qemu-fc9ec3625f6dee52811c8150af994abe3c1668a3.zip | |
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/hw')
| -rw-r--r-- | include/hw/riscv/sifive_u.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/riscv/sifive_u.h b/include/hw/riscv/sifive_u.h index 65af306963..0696f85942 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; |