mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53: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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue