Received: from eggs.gnu.org ([2001:4830:134:3::10]:50538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0gMt-0001h5-LX for qemu-devel@nongnu.org; Tue, 27 Mar 2018 00:37:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0gMs-0002gE-GH for qemu-devel@nongnu.org; Tue, 27 Mar 2018 00:37:55 -0400 From: David Gibson Date: Tue, 27 Mar 2018 15:37:29 +1100 Message-Id: <20180327043741.7705-1-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [RFC for-2.13 00/12] target/ppc: Assorted cpu cleanups (esp. hash64 MMU) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org, groug@kaod.org Cc: agraf@suse.de, qemu-devel@nongnu.org, benh@kernel.crashing.org, bharata@linux.vnet.ibm.com, clg@kaod.org, David Gibson Here's a set of cleanups for the ppc cpu code. Most are related specifically to the 64-bit hash MMU, but there are some others as well. In particular it establishes a new structure PPCHash64Options which contains details of the hash64 mmu which can vary from one cpu to another. This attempts to gather such options in one place, instead of spreading them around various bits of env->mmu_model as well as other fields. Most of these arose while I was looking to improve the way we handle available page sizes for the pseries machine type, although they're mostly not closely tied to that. David Gibson (12): target/ppc: Standardize instance_init and realize function names target/ppc: Simplify cpu valid check in ppc_cpu_realize target/ppc: Pass cpu instead of env to ppc_create_page_sizes_prop() target/ppc: Avoid taking "env" parameter to mmu-hash64 functions target/ppc: Remove fallback 64k pagesize information target/ppc: Move page size setup to helper function target/ppc: Split page size information into a separate allocation target/ppc: Make hash64_opts field mandatory for 64-bit hash MMUs target/ppc: Move 1T segment and AMR options to PPCHash64Options target/ppc: Fold ci_large_pages flag into PPCHash64Options target/ppc: Remove unnecessary POWERPC_MMU_V3 flag from mmu_model target/ppc: Get rid of POWERPC_MMU_VER() macros hw/ppc/fdt.c | 7 +-- hw/ppc/pnv.c | 7 +-- hw/ppc/spapr.c | 9 ++-- include/hw/ppc/fdt.h | 2 +- target/ppc/cpu-qom.h | 27 ++-------- target/ppc/cpu.h | 23 +-------- target/ppc/kvm.c | 29 +++++------ target/ppc/mmu-hash64.c | 123 +++++++++++++++++++++++++++++++++----------- target/ppc/mmu-hash64.h | 41 ++++++++++++++- target/ppc/mmu_helper.c | 24 ++++----- target/ppc/translate.c | 12 ++--- target/ppc/translate_init.c | 111 +++++++++------------------------------ 12 files changed, 205 insertions(+), 210 deletions(-) -- 2.14.3