hw/riscv/boot.c: Support 64-bit address for initrd
Use qemu_fdt_setprop_u64() instead of qemu_fdt_setprop_cell() to set the address of initrd in FDT to support 64-bit address. Signed-off-by: Cheng Yang <yangcheng.work@foxmail.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <tencent_A4482251DD0890F312758FA6B33F60815609@qq.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
a6b53378f5
commit
0390039950
@ -209,8 +209,8 @@ static void riscv_load_initrd(MachineState *machine, uint64_t kernel_entry)
|
|||||||
/* Some RISC-V machines (e.g. opentitan) don't have a fdt. */
|
/* Some RISC-V machines (e.g. opentitan) don't have a fdt. */
|
||||||
if (fdt) {
|
if (fdt) {
|
||||||
end = start + size;
|
end = start + size;
|
||||||
qemu_fdt_setprop_cell(fdt, "/chosen", "linux,initrd-start", start);
|
qemu_fdt_setprop_u64(fdt, "/chosen", "linux,initrd-start", start);
|
||||||
qemu_fdt_setprop_cell(fdt, "/chosen", "linux,initrd-end", end);
|
qemu_fdt_setprop_u64(fdt, "/chosen", "linux,initrd-end", end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user