hw/intc/loongarch_ipi: Use alternative implemation for cpu_by_arch_id
authorBibo Mao <maobibo@loongson.cn>
Tue, 7 Jan 2025 03:08:19 +0000 (11:08 +0800)
committerBibo Mao <maobibo@loongson.cn>
Wed, 15 Jan 2025 06:36:19 +0000 (14:36 +0800)
commitbb81f237401b5f89f6bba21d9d4f50e0073372a6
treea889f71705cc99f58cd156f5889d20c41abf17b4
parent999b112d90be8404547eec0793f8d7c0b5d2a547
hw/intc/loongarch_ipi: Use alternative implemation for cpu_by_arch_id

There is arch_id and CPUState pointer in IPICore object. With function
cpu_by_arch_id() it can be implemented by parsing IPICore array inside,
rather than possible_cpus array.

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