diff options
author | David Gibson | 2017-02-20 00:47:09 +0100 |
---|---|---|
committer | David Gibson | 2017-03-01 01:23:39 +0100 |
commit | b7b0b1f13a9d0b77b3dcb7696de420c2e805ca25 (patch) | |
tree | 98a854a1303e0c918569d48bcc58621cefddd4a8 /target/ppc/cpu.h | |
parent | pseries: Minor cleanups to HPT management hypercalls (diff) | |
download | qemu-b7b0b1f13a9d0b77b3dcb7696de420c2e805ca25.tar.gz qemu-b7b0b1f13a9d0b77b3dcb7696de420c2e805ca25.tar.xz qemu-b7b0b1f13a9d0b77b3dcb7696de420c2e805ca25.zip |
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>
Diffstat (limited to 'target/ppc/cpu.h')
-rw-r--r-- | target/ppc/cpu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index c022984e44..2a94e76119 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1301,8 +1301,7 @@ void store_booke_tcr (CPUPPCState *env, target_ulong val); void store_booke_tsr (CPUPPCState *env, target_ulong val); void ppc_tlb_invalidate_all (CPUPPCState *env); void ppc_tlb_invalidate_one (CPUPPCState *env, target_ulong addr); -void cpu_ppc_set_vhyp(PowerPCCPU *cpu, PPCVirtualHypervisor *vhyp); -void cpu_ppc_set_papr(PowerPCCPU *cpu); +void cpu_ppc_set_papr(PowerPCCPU *cpu, PPCVirtualHypervisor *vhyp); #endif #endif |