mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
14dc02b56a
commit
1b3aa34704
2 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -899,7 +899,6 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms)
|
|||
|
||||
/* Create IPI device */
|
||||
ipi = qdev_new(TYPE_LOONGARCH_IPI);
|
||||
qdev_prop_set_uint32(ipi, "num-cpu", ms->smp.cpus);
|
||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(ipi), &error_fatal);
|
||||
|
||||
/* IPI iocsr memory region */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue