mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-05 11:39:54 +00:00
hw/riscv/sifive_u: Set the soc device tree node as a simple-bus
To allow Linux to ennumerate devices on the /soc/ node set it as a "simple-bus". Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Michael Clark <mjc@sifive.com>
This commit is contained in:
parent
647a70a10f
commit
2a1a6f6d47
@ -97,7 +97,7 @@ static void create_fdt(SiFiveUState *s, const struct MemmapEntry *memmap,
|
|||||||
|
|
||||||
qemu_fdt_add_subnode(fdt, "/soc");
|
qemu_fdt_add_subnode(fdt, "/soc");
|
||||||
qemu_fdt_setprop(fdt, "/soc", "ranges", NULL, 0);
|
qemu_fdt_setprop(fdt, "/soc", "ranges", NULL, 0);
|
||||||
qemu_fdt_setprop_string(fdt, "/soc", "compatible", "ucbbar,spike-bare-soc");
|
qemu_fdt_setprop_string(fdt, "/soc", "compatible", "simple-bus");
|
||||||
qemu_fdt_setprop_cell(fdt, "/soc", "#size-cells", 0x2);
|
qemu_fdt_setprop_cell(fdt, "/soc", "#size-cells", 0x2);
|
||||||
qemu_fdt_setprop_cell(fdt, "/soc", "#address-cells", 0x2);
|
qemu_fdt_setprop_cell(fdt, "/soc", "#address-cells", 0x2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user