Change PLIC compatible string from riscv,plic0 to sifive,plic-1.0.0

Former one is deprecated and apparently only used by QEMU. Latter is used by QEMU as well as others.
This commit is contained in:
Andrey Turkin
2024-11-06 12:08:19 +03:00
parent 99fbdf426c
commit ee89d02282
+1 -1
View File
@@ -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("riscv,plic0") {
} else if ic_str.contains("sifive,plic-1.0.0") {
Some(Box::new(plic::Plic::new()))
} else {
log::warn!("no driver for interrupt controller {:?}", ic_str);