hw/intc/loongarch_extioi: Fix interrupt routing update
authorBibo Mao <maobibo@loongson.cn>
Wed, 13 Mar 2024 09:39:32 +0000 (17:39 +0800)
committerSong Gao <gaosong@loongson.cn>
Wed, 20 Mar 2024 02:19:57 +0000 (10:19 +0800)
commit0a57a96ec6532dafa961c6196a7b0c00fd28e662
tree4f3cbedfff3e06f480efd038e5d72a6d63e223e5
parentc62d54d0a8067ffb3d5b909276f7296d7df33fa7
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>
hw/intc/loongarch_extioi.c