summary refs log tree commit diff stats
path: root/hw/intc/sh_intc.c
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2023-04-06 15:11:31 +0800
committerSong Gao <gaosong@loongson.cn>2023-05-15 19:09:33 +0800
commit7ef0eb35a4e6961d7e40f03f16ed241c95ae93f9 (patch)
treeddd4866838ad501e49382744c48e5fe6857736e9 /hw/intc/sh_intc.c
parent646c39b220f789158313fee5d207f370e29c586a (diff)
downloadfocaccia-qemu-7ef0eb35a4e6961d7e40f03f16ed241c95ae93f9.tar.gz
focaccia-qemu-7ef0eb35a4e6961d7e40f03f16ed241c95ae93f9.zip
hw/intc: Add NULL pointer check on LoongArch ipi device
When ipi mailbox is used, cpu_index is decoded from iocsr register.
cpu maybe does not exist. This patch adds NULL pointer check on
ipi device.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230512100421.1867848-4-gaosong@loongson.cn>
Diffstat (limited to 'hw/intc/sh_intc.c')
0 files changed, 0 insertions, 0 deletions