summary refs log tree commit diff stats
path: root/hw/loongarch/virt.c
diff options
context:
space:
mode:
authorTianrui Zhao <zhaotianrui@loongson.cn>2023-05-17 09:22:00 +0800
committerSong Gao <gaosong@loongson.cn>2023-06-16 17:58:46 +0800
commit758a7475663f36d0d411e9cb4199b6c543152f8a (patch)
tree624830723d62a446c81099fa3f53173c5d7c9a21 /hw/loongarch/virt.c
parent8f30771ce61b0290fdb00b4cdbbc514723008a12 (diff)
downloadfocaccia-qemu-758a7475663f36d0d411e9cb4199b6c543152f8a.tar.gz
focaccia-qemu-758a7475663f36d0d411e9cb4199b6c543152f8a.zip
hw/intc: Set physical cpuid route for LoongArch ipi device
LoongArch ipi device uses physical cpuid to route to different
vcpus rather logical cpuid, and the physical cpuid is the same
with cpuid in acpi dsdt and srat table.

Reviewed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230613120552.2471420-3-zhaotianrui@loongson.cn>
Diffstat (limited to 'hw/loongarch/virt.c')
-rw-r--r--hw/loongarch/virt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index ced5a862f8..17bc37bccd 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -617,6 +617,7 @@ static void loongarch_irq_init(LoongArchMachineState *lams)
             memory_region_add_subregion(&env->system_iocsr, APIC_BASE,
                                 sysbus_mmio_get_region(SYS_BUS_DEVICE(extioi),
                                 cpu));
+        env->ipistate = ipi;
     }
 
     /*