aboutsummaryrefslogtreecommitdiff
path: root/hw/intc
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-01-07 11:08:17 +0800
committerBibo Mao <maobibo@loongson.cn>2025-01-15 14:31:19 +0800
commit1b3aa347044966a69e16a821eb44fbc16d0d58c9 (patch)
tree2e9fb094670ae32d038ca696b383ee2d3854ccc4 /hw/intc
parent14dc02b56a3d4434401ad92415cbec3e30ff3fa5 (diff)
downloadqemu-1b3aa347044966a69e16a821eb44fbc16d0d58c9.zip
qemu-1b3aa347044966a69e16a821eb44fbc16d0d58c9.tar.gz
qemu-1b3aa347044966a69e16a821eb44fbc16d0d58c9.tar.bz2
hw/intc/loongarch_ipi: Remove property num-cpu
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_IPI object. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Diffstat (limited to 'hw/intc')
-rw-r--r--hw/intc/loongarch_ipi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/intc/loongarch_ipi.c b/hw/intc/loongarch_ipi.c
index 49b4595..41d9625 100644
--- a/hw/intc/loongarch_ipi.c
+++ b/hw/intc/loongarch_ipi.c
@@ -79,10 +79,6 @@ static void loongarch_ipi_realize(DeviceState *dev, Error **errp)
}
}
-static const Property loongarch_ipi_properties[] = {
- DEFINE_PROP_UINT32("num-cpu", LoongsonIPICommonState, num_cpu, 1),
-};
-
static void loongarch_ipi_class_init(ObjectClass *klass, void *data)
{
LoongsonIPICommonClass *licc = LOONGSON_IPI_COMMON_CLASS(klass);
@@ -91,7 +87,6 @@ static void loongarch_ipi_class_init(ObjectClass *klass, void *data)
device_class_set_parent_realize(dc, loongarch_ipi_realize,
&lic->parent_realize);
- device_class_set_props(dc, loongarch_ipi_properties);
licc->get_iocsr_as = get_iocsr_as;
licc->cpu_by_arch_id = loongarch_cpu_by_arch_id;
}