diff options
author | Bibo Mao <maobibo@loongson.cn> | 2022-12-28 11:07:19 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2023-03-03 09:37:26 +0800 |
commit | 456eb81f766b2bdcd2f163fba7107dbdcfbb718a (patch) | |
tree | 08674dd58bffd615c5f7d1e2ff169fd7bab6b2c5 /hw/loongarch/acpi-build.c | |
parent | 262312d7ba6e2966acedb4f9c134fd19176b4083 (diff) | |
download | qemu-456eb81f766b2bdcd2f163fba7107dbdcfbb718a.zip qemu-456eb81f766b2bdcd2f163fba7107dbdcfbb718a.tar.gz qemu-456eb81f766b2bdcd2f163fba7107dbdcfbb718a.tar.bz2 |
hw/loongarch/virt: rename PCH_PIC_IRQ_OFFSET with VIRT_GSI_BASE
In theory gsi base can start from 0 on loongarch virt machine,
however gsi base is hard-coded in linux kernel loongarch system,
else system fails to boot.
This patch renames macro PCH_PIC_IRQ_OFFSET with VIRT_GSI_BASE,
keeps value unchanged. GSI base is common concept in acpi spec
and easy to understand.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221228030719.991878-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'hw/loongarch/acpi-build.c')
-rw-r--r-- | hw/loongarch/acpi-build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/loongarch/acpi-build.c b/hw/loongarch/acpi-build.c index f551296..8aed50e 100644 --- a/hw/loongarch/acpi-build.c +++ b/hw/loongarch/acpi-build.c @@ -271,7 +271,7 @@ static void build_pci_device_aml(Aml *scope, LoongArchMachineState *lams) .pio.size = VIRT_PCI_IO_SIZE, .ecam.base = VIRT_PCI_CFG_BASE, .ecam.size = VIRT_PCI_CFG_SIZE, - .irq = PCH_PIC_IRQ_OFFSET + VIRT_DEVICE_IRQS, + .irq = VIRT_GSI_BASE + VIRT_DEVICE_IRQS, .bus = lams->pci_bus, }; |