]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: Merge cpu_ppc_set_vhyp() with cpu_ppc_set_papr()
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 19 Feb 2017 23:47:09 +0000 (10:47 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 00:23:39 +0000 (11:23 +1100)
commitb7b0b1f13a9d0b77b3dcb7696de420c2e805ca25
tree98a854a1303e0c918569d48bcc58621cefddd4a8
parentc6404adebf923fdd9ee5edf92594dcf5df3b5b10
target/ppc: Merge cpu_ppc_set_vhyp() with cpu_ppc_set_papr()

cpu_ppc_set_papr() sets up various aspects of CPU state for use with PAPR
paravirtualized guests.  However, it doesn't set the virtual hypervisor,
so callers must also call cpu_ppc_set_vhyp() so that PAPR hypercalls are
handled properly.  This is a bit silly, so fold setting the virtual
hypervisor into cpu_ppc_set_papr().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
hw/ppc/spapr_cpu_core.c
target/ppc/cpu.h
target/ppc/translate_init.c