]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/aspeed.c
hw/arm: Replace global smp variables with machine smp properties
authorLike Xu <like.xu@linux.intel.com>
Sat, 18 May 2019 20:54:26 +0000 (04:54 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:08:03 +0000 (17:08 -0300)
commitcc7d44c2e0fc9dff1b9eef857f14a7fd31d71f46
tree2c97f7323d5a5d36050c5fd36ebdcaf426f74f70
parent0e11fc6955dddf752987b261a0176edf31b34dec
hw/arm: Replace global smp variables with machine smp properties

The global smp variables in arm are replaced with smp machine properties.
The init_cpus() and *_create_rpu() are refactored to pass MachineState.

A local variable of the same name would be introduced in the declaration
phase if it's used widely in the context OR replace it on the spot if it's
only used once. No semantic changes.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190518205428.90532-9-like.xu@linux.intel.com>
[ehabkost: Fix hw/arm/sbsa-ref.c and hw/arm/aspeed.c]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
15 files changed:
hw/arm/aspeed.c
hw/arm/fsl-imx6.c
hw/arm/fsl-imx6ul.c
hw/arm/fsl-imx7.c
hw/arm/highbank.c
hw/arm/mcimx6ul-evk.c
hw/arm/mcimx7d-sabre.c
hw/arm/raspi.c
hw/arm/realview.c
hw/arm/sabrelite.c
hw/arm/sbsa-ref.c
hw/arm/vexpress.c
hw/arm/virt.c
hw/arm/xlnx-zynqmp.c
target/arm/cpu.c