]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
target/ppc: Move 1T segment and AMR options to PPCHash64Options
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Mar 2018 03:11:07 +0000 (14:11 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:22 +0000 (18:05 +1000)
commit58969eeece99abd6d31d530ad371e789419ec9bf
treef8f64ca415813f90b20e2b02c99cdebbbb91cc51
parent21e405f1ecd16a9036d838222f2212ec10370059
target/ppc: Move 1T segment and AMR options to PPCHash64Options

Currently env->mmu_model is a bit of an unholy mess of an enum of distinct
MMU types, with various flag bits as well.  This makes which bits of the
field should be compared pretty confusing.

Make a start on cleaning that up by moving two of the flags bits -
POWERPC_MMU_1TSEG and POWERPC_MMU_AMR - which are specific to the 64-bit
hash MMU into a new flags field in PPCHash64Options structure.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/pnv.c
hw/ppc/spapr.c
target/ppc/cpu-qom.h
target/ppc/kvm.c
target/ppc/mmu-hash64.c
target/ppc/mmu-hash64.h