mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-20 03:05:47 +08:00
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:
committed by
Sebastian Huber
parent
62cb39d7fe
commit
9cda6f29a7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user