hw/intc/loongarch_ipi: Fix mail send and any send function
commitbf7ce37f8f40149dfa354bdb74810c8e586a11e4
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Tue, 5 Jul 2022 06:49:01 +0000 (5 14:49 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 5 Jul 2022 10:55:17 +0000 (5 16:25 +0530)
treed4cf184b9d138c117e58339d5c2f1cc9bc534e34
parentddf93261847df55137436abe429aae7f9d8228dd
hw/intc/loongarch_ipi: Fix mail send and any send function

By the document of ipi mailsend device, byte is written only when the mask bit
is 0. The original code discards mask bit and overwrite the data always, this
patch fixes the issue.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Message-Id: <20220705064901.2353349-3-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/intc/loongarch_ipi.c