hw/intc/loongson_ipi: Add more input parameter for cpu_by_arch_id
authorBibo Mao <maobibo@loongson.cn>
Tue, 7 Jan 2025 03:08:18 +0000 (11:08 +0800)
committerBibo Mao <maobibo@loongson.cn>
Wed, 15 Jan 2025 06:33:49 +0000 (14:33 +0800)
commit999b112d90be8404547eec0793f8d7c0b5d2a547
tree4c2c9ddc1f7d5610d25e9bdf47619d23132b0f7c
parent1b3aa347044966a69e16a821eb44fbc16d0d58c9
hw/intc/loongson_ipi: Add more input parameter for cpu_by_arch_id

Add logic cpu index input parameter for function cpu_by_arch_id,
CPUState::cpu_index is logic cpu slot index for possible_cpus.

At the same time it is logic index with LoongsonIPICommonState::IPICore,
here hide access for CPUState::cpu_index directly, it comes from
function cpu_by_arch_id().

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
hw/intc/loongarch_ipi.c
hw/intc/loongson_ipi.c
hw/intc/loongson_ipi_common.c
include/hw/intc/loongson_ipi_common.h