Skip to content
Snippets Groups Projects
Commit 7af6dd1f authored by Andrey Turkin's avatar Andrey Turkin
Browse files

Restore riscv,plic0 compatible check

parent 9fe8f759
Branches master
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ mod clint;
pub fn new_irqchip(ic_str: &str) -> Option<Box<dyn InterruptController>> {
if ic_str.contains("riscv,cpu-intc") {
Some(Box::new(hlic::Hlic::new()))
} else if ic_str.contains("sifive,plic-1.0.0") {
} else if ic_str.contains("riscv,plic0") || ic_str.contains("sifive,plic-1.0.0") {
Some(Box::new(plic::Plic::new()))
} else {
log::warn!("no driver for interrupt controller {:?}", ic_str);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment