summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorDaniel Henrique Barboza2017-09-06 20:43:05 +0200
committerDavid Gibson2017-09-15 02:29:48 +0200
commitc86c1affaec4bfa82eac226965e4be21fc44d538 (patch)
treee629687b3ad67589afcf0f815533518a2473d854 /include/exec
parentnet: Add SunGEM device emulation as found on Apple UniNorth (diff)
downloadqemu-c86c1affaec4bfa82eac226965e4be21fc44d538.tar.gz
qemu-c86c1affaec4bfa82eac226965e4be21fc44d538.tar.xz
qemu-c86c1affaec4bfa82eac226965e4be21fc44d538.zip
hw/ppc/spapr.c: cleaning up qdev_get_machine() calls
This patch removes the qdev_get_machine() calls that are made in spapr.c in situations where we can get an existing pointer for the MachineState by either passing it as an argument to the function or by using other already available pointers. The following changes were made: - spapr_node0_size: static function that is called two times: at spapr_setup_hpt_and_vrma and ppc_spapr_init. In both cases we can pass an existing MachineState pointer to it. - spapr_build_fdt: MachineState pointer can be retrieved from the existing sPAPRMachineState pointer. - spapr_boot_set: the opaque in the first arg is a sPAPRMachineState pointer as we can see inside ppc_spapr_init: qemu_register_boot_set(spapr_boot_set, spapr); We can get a MachineState pointer from it. - spapr_machine_device_plug and spapr_machine_device_unplug_request: the MachineState, sPAPRMachineState, MachineClass and sPAPRMachineClass pointers can all be retrieved from the HotplugHandler pointer. Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions