<div dir="auto">How does this get enabled? Is it supposed to be tripped by some bsp variant? <div dir="auto"><br></div><div dir="auto">Where is any documentation on it?</div><div dir="auto"><br></div><div dir="auto">Right now, it looks like hidden magic.</div><div dir="auto"><br></div><div dir="auto">--joel</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 17, 2018, 7:12 AM Hesham Almatary <<a href="mailto:Hesham.Almatary@cl.cam.ac.uk">Hesham.Almatary@cl.cam.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Spike simulator and QEMU's spike_v1.10 don't have a PLIC<br>
---<br>
bsps/riscv/riscv/irq/irq.c | 5 +++++<br>
1 file changed, 5 insertions(+)<br>
<br>
diff --git a/bsps/riscv/riscv/irq/irq.c b/bsps/riscv/riscv/irq/irq.c<br>
index 1a76846..3c35a37 100644<br>
--- a/bsps/riscv/riscv/irq/irq.c<br>
+++ b/bsps/riscv/riscv/irq/irq.c<br>
@@ -161,7 +161,12 @@ static void riscv_plic_init(const void *fdt)<br>
<br>
plic = riscv_fdt_get_address(fdt, node);<br>
if (plic == NULL) {<br>
+#if RISCV_ENABLE_HTIF_SUPPORT != 0<br>
+ /* Spike platform has HTIF and does not have a PLIC */<br>
+ return;<br>
+#else<br>
bsp_fatal(RISCV_FATAL_NO_PLIC_REG_IN_DEVICE_TREE);<br>
+#endif<br>
}<br>
<br>
val = fdt_getprop(fdt, node, "riscv,ndev", &len);<br>
-- <br>
2.7.4<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>