summary refs log tree commit diff stats
path: root/include/hw/loongarch/virt.h
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-02-05 11:36:14 +0800
committerBibo Mao <maobibo@loongson.cn>2025-02-12 10:05:22 +0800
commit456739ce4347c21b6fa2ec1b6585bc4a6504446f (patch)
tree95c31d0015690e496d43523a66edeec34eb28719 /include/hw/loongarch/virt.h
parent2d2c37c492770ab627c0e60836198745a45c0385 (diff)
downloadfocaccia-qemu-456739ce4347c21b6fa2ec1b6585bc4a6504446f.tar.gz
focaccia-qemu-456739ce4347c21b6fa2ec1b6585bc4a6504446f.zip
hw/loongarch/virt: CPU irq line connection improvement
Interrupt controller extioi and ipi connect to CPU with irq line method.
With command -smp x, -device la464-loongarch-cpu, smp.cpus is not
accurate for all possible CPU objects, possible_cpu_arch_ids() is used.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Diffstat (limited to 'include/hw/loongarch/virt.h')
-rw-r--r--include/hw/loongarch/virt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h
index f01350017b..661efae61d 100644
--- a/include/hw/loongarch/virt.h
+++ b/include/hw/loongarch/virt.h
@@ -60,6 +60,8 @@ struct LoongArchVirtMachineState {
     MemoryRegion iocsr_mem;
     AddressSpace as_iocsr;
     struct loongarch_boot_info bootinfo;
+    DeviceState *ipi;
+    DeviceState *extioi;
 };
 
 #define TYPE_LOONGARCH_VIRT_MACHINE  MACHINE_TYPE_NAME("virt")