diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-01-06 15:36:25 +0800 |
|---|---|---|
| committer | Bibo Mao <maobibo@loongson.cn> | 2025-01-09 14:13:24 +0800 |
| commit | 5a3e068d411c563d924f5eb40f82e91aaca1eaed (patch) | |
| tree | 076e2645e9591ec7fb8bd23d279ece6dda59ba59 /include/hw/intc | |
| parent | 38adceb4c38de657f03132ccd9fd380395957a9f (diff) | |
| download | focaccia-qemu-5a3e068d411c563d924f5eb40f82e91aaca1eaed.tar.gz focaccia-qemu-5a3e068d411c563d924f5eb40f82e91aaca1eaed.zip | |
hw/intc/loongarch_extioi: Get cpu number from possible_cpu_arch_ids
Supported CPU number can be acquired from function possible_cpu_arch_ids(), cpu-num property is not necessary. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Diffstat (limited to 'include/hw/intc')
| -rw-r--r-- | include/hw/intc/loongarch_extioi_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_extioi_common.h b/include/hw/intc/loongarch_extioi_common.h index f6bc778a85..22d7880977 100644 --- a/include/hw/intc/loongarch_extioi_common.h +++ b/include/hw/intc/loongarch_extioi_common.h @@ -65,6 +65,8 @@ typedef struct ExtIOICore { uint32_t coreisr[EXTIOI_IRQS_GROUP_COUNT]; DECLARE_BITMAP(sw_isr[LS3A_INTC_IP], EXTIOI_IRQS); qemu_irq parent_irq[LS3A_INTC_IP]; + uint64_t arch_id; + CPUState *cpu; } ExtIOICore; struct LoongArchExtIOICommonState { |