]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/intc/loongarch_extioi: Fix typo issue about register EXTIOI_COREISR_END
authorBibo Mao <maobibo@loongson.cn>
Thu, 5 Jun 2025 09:28:48 +0000 (17:28 +0800)
committerSong Gao <gaosong@loongson.cn>
Tue, 10 Jun 2025 03:56:51 +0000 (11:56 +0800)
Interrupt controller extioi supports 256 vectors, register EXTIOI_COREISR
records pending interrupt status with bitmap method. Size of EXTIOI_COREISR
is 256 / 8 = 0x20 bytes, EXTIOI_COREISR_END should be EXTIOI_COREISR_START
+ 0x20 rather than 0xB20.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20250605092848.1550985-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
include/hw/intc/loongarch_extioi_common.h

index 735bfee80a71f7ef97961c3509ea985fc59bf237..dca25ff893e840dda2ee150cedb8826a39deb6a1 100644 (file)
@@ -35,7 +35,7 @@
 #define EXTIOI_ISR_START             (0x700 - APIC_OFFSET)
 #define EXTIOI_ISR_END               (0x720 - APIC_OFFSET)
 #define EXTIOI_COREISR_START         (0x800 - APIC_OFFSET)
-#define EXTIOI_COREISR_END           (0xB20 - APIC_OFFSET)
+#define EXTIOI_COREISR_END           (0x820 - APIC_OFFSET)
 #define EXTIOI_COREMAP_START         (0xC00 - APIC_OFFSET)
 #define EXTIOI_COREMAP_END           (0xD00 - APIC_OFFSET)
 #define EXTIOI_SIZE                  0x800