Current available rva23 compliant risc-v hw (spacemit k3,
tt atlantis) support only 63 guest interrupt identities.
Reduce and move platform bus interrupt range to fit within
those limits.

Signed-off-by: Stefan Butz <[email protected]>
---
 include/hw/riscv/virt.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h
index 98e48ac894..52cf7c5290 100644
--- a/include/hw/riscv/virt.h
+++ b/include/hw/riscv/virt.h
@@ -102,10 +102,10 @@ enum {
     VIRTIO_COUNT = 8,
     PCIE_IRQ = 0x20, /* 32 to 35 */
     IOMMU_SYS_IRQ = 0x24, /* 36-39 */
-    VIRT_PLATFORM_BUS_IRQ = 64, /* 64 to 95 */
+    VIRT_PLATFORM_BUS_IRQ = 0x2E, /* 46 to 61 */
 };
 
-#define VIRT_PLATFORM_BUS_NUM_IRQS 32
+#define VIRT_PLATFORM_BUS_NUM_IRQS 16
 
 #define VIRT_IRQCHIP_NUM_MSIS 255
 #define VIRT_IRQCHIP_NUM_SOURCES 96

-- 
Git-157)


Reply via email to