aboutsummaryrefslogtreecommitdiff
path: root/hw/loongarch
diff options
context:
space:
mode:
authorXiaojuan Yang <yangxiaojuan@loongson.cn>2022-08-19 11:16:37 +0800
committerSong Gao <gaosong@loongson.cn>2022-09-20 15:44:25 +0800
commit1cd5db2e8836dc2e1e8fe83f6a2fc101c539df0c (patch)
tree2e01fa35e9c345904f729ff5542ec403b0092975 /hw/loongarch
parentf8ab9aa2883c91fb14eb583febf6a301373c8f62 (diff)
downloadqemu-1cd5db2e8836dc2e1e8fe83f6a2fc101c539df0c.zip
qemu-1cd5db2e8836dc2e1e8fe83f6a2fc101c539df0c.tar.gz
qemu-1cd5db2e8836dc2e1e8fe83f6a2fc101c539df0c.tar.bz2
hw/loongarch: Fix acpi ged irq number in dsdt table
In dsdt, acpi ged irq should use gsi number, and the VIRT_SCI_IRQ means it. Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Acked-by: Song Gao <gaosong@loongson.cn> Message-Id: <20220908094623.73051-8-yangxiaojuan@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'hw/loongarch')
-rw-r--r--hw/loongarch/acpi-build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/loongarch/acpi-build.c b/hw/loongarch/acpi-build.c
index d0f01a6..95e3097 100644
--- a/hw/loongarch/acpi-build.c
+++ b/hw/loongarch/acpi-build.c
@@ -367,7 +367,7 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, MachineState *machine)
if (lams->acpi_ged) {
build_ged_aml(dsdt, "\\_SB."GED_DEVICE,
HOTPLUG_HANDLER(lams->acpi_ged),
- VIRT_SCI_IRQ - PCH_PIC_IRQ_OFFSET, AML_SYSTEM_MEMORY,
+ VIRT_SCI_IRQ, AML_SYSTEM_MEMORY,
VIRT_GED_EVT_ADDR);
}