This patch add cpu arch_id for LoongArch: 1. Add LoongArch cpu arch_id support; 2. Fill Acpi table with arch_id; 3. set physical cpuid route for LoongArch ipi device.
changes for v2: 1. Fix core_id calculation in ms->possible_cpus, it should be (n % smp.cores) Tianrui Zhao (2): hw/loongarch/virt: Add cpu arch_id support hw/intc: Set physical cpuid route for LoongArch ipi device hw/intc/loongarch_ipi.c | 44 ++++++++++++++++++++++++++++++++------- hw/loongarch/acpi-build.c | 20 ++++++++++++------ hw/loongarch/virt.c | 35 +++++++++++++++++++++++++++++-- target/loongarch/cpu.h | 2 ++ 4 files changed, 86 insertions(+), 15 deletions(-) -- 2.39.1