diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-02-05 11:36:14 +0800 |
|---|---|---|
| committer | Bibo Mao <maobibo@loongson.cn> | 2025-02-12 10:05:22 +0800 |
| commit | 456739ce4347c21b6fa2ec1b6585bc4a6504446f (patch) | |
| tree | 95c31d0015690e496d43523a66edeec34eb28719 /include/hw/loongarch/virt.h | |
| parent | 2d2c37c492770ab627c0e60836198745a45c0385 (diff) | |
| download | focaccia-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.h | 2 |
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") |