]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/mmu-hash64.c
target/ppc: Split page size information into a separate allocation
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Mar 2018 02:31:52 +0000 (13:31 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:22 +0000 (18:05 +1000)
commitb07c59f7c8df6efc24576f07622b61ad115468e6
tree5cbf088fe35640a1481d068f9422a0da61df4e14
parenta059471d2536dad316dfc24dd03790d0cd597081
target/ppc: Split page size information into a separate allocation

env->sps contains page size encoding information as an embedded structure.
Since this information is specific to 64-bit hash MMUs, split it out into
a separately allocated structure, to reduce the basic env size for other
cpus.  Along the way we make a few other cleanups:

    * Rename to PPCHash64Options which is more in line with qemu name
      conventions, and reflects that we're going to merge some more hash64
      mmu specific details in there in future.  Also rename its
      substructures to match qemu conventions.

    * Move structure definitions to the mmu-hash64.[ch] files.

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