aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-01-06 15:36:26 +0800
committerBibo Mao <maobibo@loongson.cn>2025-01-09 14:13:31 +0800
commit0443b858873d1a80eb9ede901513b247b83ea76b (patch)
tree6ecde34acb3ae093932f5107cee9e86d0e5b2ca9
parent5a3e068d411c563d924f5eb40f82e91aaca1eaed (diff)
downloadqemu-0443b858873d1a80eb9ede901513b247b83ea76b.zip
qemu-0443b858873d1a80eb9ede901513b247b83ea76b.tar.gz
qemu-0443b858873d1a80eb9ede901513b247b83ea76b.tar.bz2
hw/intc/loongarch_extioi: Remove num-cpu property
Since cpu number can be acquired from possible_cpu_arch_ids(), num-cpu property is not necessary. Here remove num-cpu property for object TYPE_LOONGARCH_EXTIOI_COMMON object. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
-rw-r--r--hw/intc/loongarch_extioi_common.c1
-rw-r--r--hw/loongarch/virt.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/hw/intc/loongarch_extioi_common.c b/hw/intc/loongarch_extioi_common.c
index 99a091e..fd56253 100644
--- a/hw/intc/loongarch_extioi_common.c
+++ b/hw/intc/loongarch_extioi_common.c
@@ -95,7 +95,6 @@ static const VMStateDescription vmstate_loongarch_extioi = {
};
static const Property extioi_properties[] = {
- DEFINE_PROP_UINT32("num-cpu", LoongArchExtIOICommonState, num_cpu, 1),
DEFINE_PROP_BIT("has-virtualization-extension", LoongArchExtIOICommonState,
features, EXTIOI_HAS_VIRT_EXTENSION, 0),
};
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index 60bd4dc..df56d75 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -921,7 +921,6 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms)
/* Create EXTIOI device */
extioi = qdev_new(TYPE_LOONGARCH_EXTIOI);
- qdev_prop_set_uint32(extioi, "num-cpu", ms->smp.cpus);
if (virt_is_veiointc_enabled(lvms)) {
qdev_prop_set_bit(extioi, "has-virtualization-extension", true);
}