hw/riscv: spike: Add '/chosen/stdout-path' in device tree unconditionally
At present the adding '/chosen/stdout-path' property in device tree is determined by whether a kernel command line is provided, which is wrong. It should be added unconditionally. Fixes: 8d8897accb1c ("hw/riscv: spike: Allow using binary firmware as bios") Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220421055629.1177285-1-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
f228336020
commit
6d3b9c024c
@ -174,10 +174,11 @@ static void create_fdt(SpikeState *s, const MemMapEntry *memmap,
|
|||||||
|
|
||||||
riscv_socket_fdt_write_distance_matrix(mc, fdt);
|
riscv_socket_fdt_write_distance_matrix(mc, fdt);
|
||||||
|
|
||||||
|
qemu_fdt_add_subnode(fdt, "/chosen");
|
||||||
|
qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", "/htif");
|
||||||
|
|
||||||
if (cmdline) {
|
if (cmdline) {
|
||||||
qemu_fdt_add_subnode(fdt, "/chosen");
|
|
||||||
qemu_fdt_setprop_string(fdt, "/chosen", "bootargs", cmdline);
|
qemu_fdt_setprop_string(fdt, "/chosen", "bootargs", cmdline);
|
||||||
qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", "/htif");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user