@@ -202,7 +202,7 @@ static void bcm2836_realize(DeviceState *dev, Error **errp)
}
/* start powered off if not enabled */
- object_property_set_bool(OBJECT(&s->cpu[n].core), n >= s->enabled_cpus,
+ object_property_set_bool(OBJECT(&s->cpu[n].core), n >= s->enabled_cores,
"start-powered-off", &err);
if (err) {
error_propagate(errp, err);
@@ -235,7 +235,7 @@ static void bcm2836_realize(DeviceState *dev, Error **errp)
}
static Property bcm2836_props[] = {
- DEFINE_PROP_UINT32("enabled-cpus", BCM283XState, enabled_cpus,
+ DEFINE_PROP_UINT32("enabled-cores", BCM283XState, enabled_cores,
BCM283X_NCPUS),
DEFINE_PROP_END_OF_LIST()
};
@@ -191,7 +191,7 @@ static void raspi_init(MachineState *machine, int version)
object_property_add_const_link(OBJECT(&s->soc), "ram", OBJECT(&s->ram),
&error_abort);
object_property_set_int(OBJECT(&s->soc), machine->smp.cores,
- "enabled-cpus", &error_abort);
+ "enabled-cores", &error_abort);
int board_rev = version == 3 ? 0xa02082 : 0xa21041;
object_property_set_int(OBJECT(&s->soc), board_rev, "board-rev",
&error_abort);
@@ -33,7 +33,7 @@ typedef struct BCM283XState {
/*< public >*/
char *cpu_type;
- uint32_t enabled_cpus;
+ uint32_t enabled_cores;
struct {
MemoryRegion bus;
We now use -smp cores=<n> to limit the number of cores powered on reset. Rename the 'enabled_cpus' variable as 'enabled_cores' to better match the new use. No functional changes. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- hw/arm/bcm2836.c | 4 ++-- hw/arm/raspi.c | 2 +- include/hw/arm/bcm2836.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)