hw/intc/loongarch_pch_msi: Fix msi vector convertion
commit490c03ab1106121182f380c639a7db852e1b5401
authorMao Bibo <maobibo@loongson.cn>
Fri, 1 Jul 2022 03:07:40 +0000 (1 11:07 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 4 Jul 2022 05:38:58 +0000 (4 11:08 +0530)
tree1da9708b00fad2049e49605128b48cf66cf68f48
parent227e73c9862672fef358d2417004cac32b3fec34
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>
hw/intc/loongarch_pch_msi.c
hw/loongarch/loongson3.c
include/hw/intc/loongarch_pch_msi.h