From ab9bbee3c7da3d5dcce03bd7379bc7d05243a9af Mon Sep 17 00:00:00 2001 From: Bibo Mao Date: Wed, 7 May 2025 10:31:33 +0800 Subject: hw/intc/loongarch_pch: Modify name of some registers For some registers with width 8 bytes, its name is something like PCH_PIC_INT_ID_LO and PCH_PIC_INT_ID_HI. From hardware manual, register name is PCH_PIC_INT_ID instead. Here name PCH_PIC_INT_ID is used, and PCH_PIC_INT_ID + 4 is used for PCH_PIC_INT_ID_HI. Signed-off-by: Bibo Mao Reviewed-by: Clement Mathieu--Drif Reviewed-by: Song Gao Message-Id: <20250507023148.1877287-2-maobibo@loongson.cn> Signed-off-by: Song Gao --- hw/loongarch/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/loongarch/virt.c') diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c index 7ad7fb68ff..8a4958aade 100644 --- a/hw/loongarch/virt.c +++ b/hw/loongarch/virt.c @@ -433,7 +433,7 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms) VIRT_IOAPIC_REG_BASE + PCH_PIC_ROUTE_ENTRY_OFFSET, sysbus_mmio_get_region(d, 1)); memory_region_add_subregion(get_system_memory(), - VIRT_IOAPIC_REG_BASE + PCH_PIC_INT_STATUS_LO, + VIRT_IOAPIC_REG_BASE + PCH_PIC_INT_STATUS, sysbus_mmio_get_region(d, 2)); /* Connect pch_pic irqs to extioi */ -- cgit 1.4.1