On Tue, Jun 16, 2026 at 6:39 AM Daniel Henrique Barboza <[email protected]> wrote: > > We're assigning a 'cpu_phandle' phandle to the cpu-intc phandle field. > Make it more in line with the other boards by assigning both a > cpu_phandle and a intc phandle. > > Signed-off-by: Daniel Henrique Barboza <[email protected]>
Reviewed-by: Alistair Francis <[email protected]> Alistair > --- > hw/riscv/sifive_u.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c > index 6a637e3b86..3abbd6c823 100644 > --- a/hw/riscv/sifive_u.c > +++ b/hw/riscv/sifive_u.c > @@ -187,8 +187,10 @@ static void create_fdt(SiFiveUState *s, const > MemMapEntry *memmap, > qemu_fdt_setprop_string(fdt, nodename, "status", "okay"); > qemu_fdt_setprop_cell(fdt, nodename, "reg", cpu); > qemu_fdt_setprop_string(fdt, nodename, "device_type", "cpu"); > + qemu_fdt_setprop_cell(fdt, nodename, "phandle", cpu_phandle); > + > qemu_fdt_add_subnode(fdt, intc); > - qemu_fdt_setprop_cell(fdt, intc, "phandle", cpu_phandle); > + qemu_fdt_setprop_cell(fdt, intc, "phandle", phandle++); > qemu_fdt_setprop_string(fdt, intc, "compatible", "riscv,cpu-intc"); > qemu_fdt_setprop(fdt, intc, "interrupt-controller", NULL, 0); > qemu_fdt_setprop_cell(fdt, intc, "#interrupt-cells", 1); > -- > 2.43.0 > >
