hw/riscv/sifive_u: Set the interrupt controller number of interrupts
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 11 May 2018 17:24:00 +0000 (10:24 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 5 Jul 2018 22:24:25 +0000 (15:24 -0700)
Set the interrupt-controller ndev to the correct number taken from the
HiFive Unleashed board.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Michael Clark <mjc@sifive.com>
hw/riscv/sifive_u.c

index d3db8ab9f5f9c0c86f44ce09f8d7031c83671512..4d3ba4e62416f6aa784e748157215bc62e797073 100644 (file)
@@ -187,7 +187,7 @@ static void create_fdt(SiFiveUState *s, const struct MemmapEntry *memmap,
         0x0, memmap[SIFIVE_U_PLIC].size);
     qemu_fdt_setprop_string(fdt, nodename, "reg-names", "control");
     qemu_fdt_setprop_cell(fdt, nodename, "riscv,max-priority", 7);
-    qemu_fdt_setprop_cell(fdt, nodename, "riscv,ndev", 4);
+    qemu_fdt_setprop_cell(fdt, nodename, "riscv,ndev", 0x35);
     qemu_fdt_setprop_cells(fdt, nodename, "phandle", 2);
     qemu_fdt_setprop_cells(fdt, nodename, "linux,phandle", 2);
     plic_phandle = qemu_fdt_get_phandle(fdt, nodename);