]> git.proxmox.com Git - mirror_qemu.git/commit
ppc: Add ppc_set_compat_all()
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 10 Nov 2016 03:37:38 +0000 (14:37 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 30 Jan 2017 23:10:14 +0000 (10:10 +1100)
commitf6f242c7578fbedcdb53a14d4b057a7059b8dd1d
tree073ca40777358eab78a72c8fea13bcfdcd21268a
parent152ef803ceb1959e2380a1da7736b935b109222e
ppc: Add ppc_set_compat_all()

Once a compatiblity mode is negotiated with the guest,
h_client_architecture_support() uses run_on_cpu() to update each CPU to
the new mode.  We're going to want this logic somewhere else shortly,
so make a helper function to do this global update.

We put it in target-ppc/compat.c - it makes as much sense at the CPU level
as it does at the machine level.  We also move the cpu_synchronize_state()
into ppc_set_compat(), since it doesn't really make any sense to call that
without synchronizing state.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_hcall.c
target/ppc/compat.c
target/ppc/cpu.h