Re: [PATCH v2 3/3] hw/intc: Add NULL pointer check on LoongArch ipi device

2023-05-14 Thread Richard Henderson
On 5/12/23 03:04, Song Gao wrote: When ipi mailbox is used, cpu_index is decoded from iocsr register. cpu maybe does not exist. This patch adss NULL pointer check on ipi device. Signed-off-by: Song Gao --- hw/intc/loongarch_ipi.c | 40 +--- hw/intc/trace-ev

Re: [PATCH v2 3/3] hw/intc: Add NULL pointer check on LoongArch ipi device

2023-05-12 Thread Philippe Mathieu-Daudé
On 12/5/23 12:04, Song Gao wrote: When ipi mailbox is used, cpu_index is decoded from iocsr register. cpu maybe does not exist. This patch adss NULL pointer check on "adds" ipi device. Signed-off-by: Song Gao --- hw/intc/loongarch_ipi.c | 40 +--- hw/i

[PATCH v2 3/3] hw/intc: Add NULL pointer check on LoongArch ipi device

2023-05-12 Thread Song Gao
When ipi mailbox is used, cpu_index is decoded from iocsr register. cpu maybe does not exist. This patch adss NULL pointer check on ipi device. Signed-off-by: Song Gao --- hw/intc/loongarch_ipi.c | 40 +--- hw/intc/trace-events| 1 + 2 files changed, 30 i