This series add irq number property for loongarch pch_msi and pch_pic interrupt controller.
Changes for v3: (1) Fix the valid range of msi_irq_num, it will trigger error_setg() when irq_num is invalid. (2) Using g_new() to alloc msi_irqs when pch_msi realize. (3) Using EXTIOI_IRQS macro to replace the 256 irq number. Changes for v2: (1) Free pch_msi_irq array in pch_msi_unrealize(). Changes for v1: (1) Add irq number property for loongarch_pch_msi. (2) Add irq number property for loongarch_pch_pic. Tianrui Zhao (2): hw/intc/loongarch_pch_msi: add irq number property hw/intc/loongarch_pch_pic: add irq number property hw/intc/loongarch_pch_msi.c | 33 ++++++++++++++++++++++++++--- hw/intc/loongarch_pch_pic.c | 29 +++++++++++++++++++++---- hw/loongarch/virt.c | 19 +++++++++++------ include/hw/intc/loongarch_pch_msi.h | 3 ++- include/hw/intc/loongarch_pch_pic.h | 5 ++--- include/hw/pci-host/ls7a.h | 1 - 6 files changed, 71 insertions(+), 19 deletions(-) -- 2.31.1