riscv: Allow platforms with no PLIC to proceed

Spike simulator and QEMU's spike_v1.10 don't have a PLIC
This commit is contained in:
Hesham Almatary
2018-09-17 13:12:07 +01:00
committed by Sebastian Huber
parent 62cb39d7fe
commit 9cda6f29a7

View File

@@ -161,7 +161,12 @@ static void riscv_plic_init(const void *fdt)
plic = riscv_fdt_get_address(fdt, node);
if (plic == NULL) {
#if RISCV_ENABLE_HTIF_SUPPORT != 0
/* Spike platform has HTIF and does not have a PLIC */
return;
#else
bsp_fatal(RISCV_FATAL_NO_PLIC_REG_IN_DEVICE_TREE);
#endif
}
val = fdt_getprop(fdt, node, "riscv,ndev", &len);