aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/loongarch_extioi.c
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-03-13 17:39:32 +0800
committerSong Gao <gaosong@loongson.cn>2024-03-20 10:19:57 +0800
commit0a57a96ec6532dafa961c6196a7b0c00fd28e662 (patch)
tree4f3cbedfff3e06f480efd038e5d72a6d63e223e5 /hw/intc/loongarch_extioi.c
parentc62d54d0a8067ffb3d5b909276f7296d7df33fa7 (diff)
hw/intc/loongarch_extioi: Fix interrupt routing update
Interrupt number in loop sentence should be base irq plus loop index, it is missing on checking whether the irq is pending. Fixes: 428a6ef4396 ("Add vmstate post_load support") Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-Id: <20240313093932.2653518-1-maobibo@loongson.cn>
Diffstat (limited to 'hw/intc/loongarch_extioi.c')
-rw-r--r--hw/intc/loongarch_extioi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/loongarch_extioi.c b/hw/intc/loongarch_extioi.c
index bdfa3b481e..0b358548eb 100644
--- a/hw/intc/loongarch_extioi.c
+++ b/hw/intc/loongarch_extioi.c
@@ -151,7 +151,7 @@ static inline void extioi_update_sw_coremap(LoongArchExtIOI *s, int irq,
continue;
}
- if (notify && test_bit(irq, (unsigned long *)s->isr)) {
+ if (notify && test_bit(irq + i, (unsigned long *)s->isr)) {
/*
* lower irq at old cpu and raise irq at new cpu
*/