aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMao Bibo <maobibo@loongson.cn>2022-07-01 11:07:40 +0800
committerRichard Henderson <richard.henderson@linaro.org>2022-07-04 11:08:58 +0530
commit490c03ab1106121182f380c639a7db852e1b5401 (patch)
tree1da9708b00fad2049e49605128b48cf66cf68f48 /include
parent227e73c9862672fef358d2417004cac32b3fec34 (diff)
downloadqemu-490c03ab1106121182f380c639a7db852e1b5401.zip
qemu-490c03ab1106121182f380c639a7db852e1b5401.tar.gz
qemu-490c03ab1106121182f380c639a7db852e1b5401.tar.bz2
hw/intc/loongarch_pch_msi: Fix msi vector convertion
Loongarch pch msi intc connects to extioi controller, the range of irq number is 64-255. Add a property for irqbase, so that we can compute the irq offset from the view of pch_msi controller with the method: msi vector (from view of upper extioi intc) - irqbase Signed-off-by: Mao Bibo <maobibo@loongson.cn> Message-Id: <20220701030740.2469162-1-maobibo@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/intc/loongarch_pch_msi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_pch_msi.h b/include/hw/intc/loongarch_pch_msi.h
index f668bfc..6d67560 100644
--- a/include/hw/intc/loongarch_pch_msi.h
+++ b/include/hw/intc/loongarch_pch_msi.h
@@ -17,4 +17,6 @@ struct LoongArchPCHMSI {
SysBusDevice parent_obj;
qemu_irq pch_msi_irq[PCH_MSI_IRQ_NUM];
MemoryRegion msi_mmio;
+ /* irq base passed to upper extioi intc */
+ unsigned int irq_base;
};