@@ -133,7 +133,6 @@ static void mpcore_priv_initfn(Object *obj)
static Property mpcore_priv_properties[] = {
DEFINE_PROP_UINT32("num-cores", ARM11MPCorePriveState, num_cpu, 1),
- DEFINE_PROP_UINT32("num-cpu", ARM11MPCorePriveState, num_cpu, 1), /* alias */
/* The ARM11 MPCORE TRM says the on-chip controller may have
* anything from 0 to 224 external interrupt IRQ lines (with another
* 32 internal). We default to 32+32, which is the number provided by
@@ -156,7 +156,6 @@ static void cortex_mpcore_priv_realize(DeviceState *dev, Error **errp)
static Property cortex_mpcore_priv_properties[] = {
DEFINE_PROP_UINT8("cluster-id", CortexMPPrivState, cluster_id, 0),
DEFINE_PROP_UINT32("num-cores", CortexMPPrivState, num_cores, 1),
- DEFINE_PROP_UINT32("num-cpu", CortexMPPrivState, num_cores, 1), /* alias */
DEFINE_PROP_STRING("cpu-type", CortexMPPrivState, cpu_type),
DEFINE_PROP_BOOL("cpu-has-el3", CortexMPPrivState, cpu_has_el3, true),
@@ -175,7 +174,6 @@ static Property cortex_mpcore_priv_properties[] = {
TYPE_MEMORY_REGION, MemoryRegion *),
DEFINE_PROP_UINT32("gic-spi-num", CortexMPPrivState, gic_spi_num, 0),
- DEFINE_PROP_UINT32("num-irq", CortexMPPrivState, gic_spi_num, 0), /* alias */
DEFINE_PROP_END_OF_LIST(),
};
@@ -99,7 +99,6 @@ static void mpcore_rirq_init(Object *obj)
object_initialize_child(obj, "a11priv", &s->priv, TYPE_ARM11MPCORE_PRIV);
object_property_add_alias(obj, "num-cores", OBJECT(&s->priv), "num-cores");
- object_property_add_alias(obj, "num-cpu", OBJECT(&s->priv), "num-cores");
privbusdev = SYS_BUS_DEVICE(&s->priv);
sysbus_init_mmio(sbd, sysbus_mmio_get_region(privbusdev, 0));
All callers access the 'num-cores' property. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- Better to squash earlier and replace in place, so no need for alias? --- hw/cpu/arm11mpcore.c | 1 - hw/cpu/cortex_mpcore.c | 2 -- hw/cpu/realview_mpcore.c | 1 - 3 files changed, 4 deletions(-)