]> git.proxmox.com Git - mirror_qemu.git/commit
hw/intc: Fix LoongArch extioi coreisr accessing
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Fri, 21 Oct 2022 01:53:07 +0000 (09:53 +0800)
committerSong Gao <gaosong@loongson.cn>
Fri, 4 Nov 2022 09:07:40 +0000 (17:07 +0800)
commita649fffcc9589a88464474e9105798eb62023352
treebfe140f99ca8ff4d1911c16f33d2e99ef1ba03f5
parent3fc8f74b51858353356968b3d04a5cccdc547caa
hw/intc: Fix LoongArch extioi coreisr accessing

1. When cpu read or write extioi COREISR reg, it should access
the reg belonged to itself, so the cpu index of 's->coreisr'
is current cpu number. Using MemTxAttrs' requester_id to get
the cpu index.
2. it need not to mask 0x1f when calculate the coreisr array index.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221021015307.2570844-3-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_extioi.c
target/loongarch/iocsr_helper.c