hw/intc/loongarch_pch_msi: add irq number property
authorTianrui Zhao <zhaotianrui@loongson.cn>
Tue, 13 Dec 2022 12:50:16 +0000 (20:50 +0800)
committerSong Gao <gaosong@loongson.cn>
Fri, 6 Jan 2023 02:54:20 +0000 (10:54 +0800)
commit6027d2740524cf04ab38564c0c299fddbeaa6723
treef0f9a702c6e6c766a08ecc875bfa8609bafe56fa
parentd1852caab131ea898134fdcea8c14bc2ee75fbe9
hw/intc/loongarch_pch_msi: add irq number property

This patch adds irq number property for loongarch msi interrupt
controller, and remove hard coding irq number macro.

Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230104020518.2564263-2-zhaotianrui@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_pch_msi.c
hw/loongarch/virt.c
include/hw/intc/loongarch_pch_msi.h
include/hw/pci-host/ls7a.h