diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-23 13:42:35 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-05 16:20:15 +0100 |
| commit | eab4f398f4c12c57cff0e5c790cf3a7bb1f7769a (patch) | |
| tree | 498860e34586cc45318db19e1659e7709c0acb60 | |
| parent | 79f5169501396ba90a32971fc66886fcf60ec52f (diff) | |
| download | focaccia-qemu-eab4f398f4c12c57cff0e5c790cf3a7bb1f7769a.tar.gz focaccia-qemu-eab4f398f4c12c57cff0e5c790cf3a7bb1f7769a.zip | |
hw/ppc/spapr_cpu_core: Access QDev properties with proper API
CPUState::start_powered_off field is part of the internal implementation of a QDev CPU. It is exposed as the QDev "start-powered-off" property. External components should use the qdev properties API to access it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Message-Id: <20231123143813.42632-2-philmd@linaro.org>
| -rw-r--r-- | hw/ppc/spapr_cpu_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 710078e9f7..5aa1ed474a 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -306,7 +306,7 @@ static PowerPCCPU *spapr_create_vcpu(SpaprCpuCore *sc, int i, Error **errp) * All CPUs start halted. CPU0 is unhalted from the machine level reset code * and the rest are explicitly started up by the guest using an RTAS call. */ - cs->start_powered_off = true; + qdev_prop_set_bit(DEVICE(obj), "start-powered-off", true); cs->cpu_index = cc->core_id + i; if (!spapr_set_vcpu_id(cpu, cs->cpu_index, errp)) { return NULL; |