From: Philippe Mathieu-Daudé Date: Tue, 21 Jan 2020 11:03:40 +0000 (+0100) Subject: hw/ppc/spapr_rtas: Use local MachineState variable X-Git-Tag: v5.0.0-rc0~125^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da2c8f4dcddc0f9fb64a0c75cf6d577abf6bdb85;p=thirdparty%2Fqemu.git hw/ppc/spapr_rtas: Use local MachineState variable Since we have the MachineState already available locally, use it instead of the global current_machine. Reviewed-by: Greg Kurz Acked-by: David Gibson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20200121110349.25842-2-philmd@redhat.com> Signed-off-by: Paolo Bonzini --- diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c index 8d8d8cdfcba..e88bb1930ea 100644 --- a/hw/ppc/spapr_rtas.c +++ b/hw/ppc/spapr_rtas.c @@ -281,7 +281,7 @@ static void rtas_ibm_get_system_parameter(PowerPCCPU *cpu, "DesProcs=%d," "MaxPlatProcs=%d", max_cpus, - current_machine->ram_size / MiB, + ms->ram_size / MiB, ms->smp.cpus, max_cpus); if (pcc->n_host_threads > 0) {