mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/riscv: Support to load DTB after 3GB memory on 64-bit system.
Larger initrd image will overlap the DTB at 3GB address. Since 64-bit system doesn't have 32-bit addressable issue, we just load DTB to the end of dram in 64-bit system. Signed-off-by: Jim Shu <jim.shu@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-ID: <20241120153935.24706-2-jim.shu@sifive.com> [ Changes by AF - Store fdt_load_addr_hi32 in the reset vector ] Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
d2ed9fffba
commit
b4132a9e62
6 changed files with 20 additions and 14 deletions
|
@ -49,7 +49,7 @@ target_ulong riscv_load_kernel(MachineState *machine,
|
|||
bool load_initrd,
|
||||
symbol_fn_t sym_cb);
|
||||
uint64_t riscv_compute_fdt_addr(hwaddr dram_start, uint64_t dram_size,
|
||||
MachineState *ms);
|
||||
MachineState *ms, RISCVHartArrayState *harts);
|
||||
void riscv_load_fdt(hwaddr fdt_addr, void *fdt);
|
||||
void riscv_setup_rom_reset_vec(MachineState *machine, RISCVHartArrayState *harts,
|
||||
hwaddr saddr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue