]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/riscv/sifive_u.h
riscv: plic: Fix incorrect irq calculation
[mirror_qemu.git] / include / hw / riscv / sifive_u.h
index be13cc1304ccbdda34be6ac99ccea43630975e0e..892f0eee21bc926f8c48a9040e98936ed50e2d59 100644 (file)
@@ -68,9 +68,9 @@ enum {
 };
 
 #define SIFIVE_U_PLIC_HART_CONFIG "MS"
-#define SIFIVE_U_PLIC_NUM_SOURCES 127
+#define SIFIVE_U_PLIC_NUM_SOURCES 54
 #define SIFIVE_U_PLIC_NUM_PRIORITIES 7
-#define SIFIVE_U_PLIC_PRIORITY_BASE 0x0
+#define SIFIVE_U_PLIC_PRIORITY_BASE 0x04
 #define SIFIVE_U_PLIC_PENDING_BASE 0x1000
 #define SIFIVE_U_PLIC_ENABLE_BASE 0x2000
 #define SIFIVE_U_PLIC_ENABLE_STRIDE 0x80