[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH for-2.13 00/13] target/ppc: Assorted cpu cleanups (esp
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH for-2.13 00/13] target/ppc: Assorted cpu cleanups (esp. hash64 MMU) |
Date: |
Thu, 5 Apr 2018 12:14:24 +1000 |
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.
Changes since RFC:
* Added an extra patch folding slb_nr into the new scheme
* Assorted minor fixes based on feedback
David Gibson (13):
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
target/ppc: Fold slb_nr into PPCHash64Options
hw/ppc/fdt.c | 7 +-
hw/ppc/pnv.c | 9 +--
hw/ppc/spapr.c | 20 +++---
include/hw/ppc/fdt.h | 2 +-
target/ppc/cpu-qom.h | 27 ++------
target/ppc/cpu.h | 30 ++-------
target/ppc/kvm.c | 31 ++++-----
target/ppc/machine.c | 23 ++++++-
target/ppc/mmu-hash64.c | 152 +++++++++++++++++++++++++++++++-------------
target/ppc/mmu-hash64.h | 48 +++++++++++++-
target/ppc/mmu_helper.c | 24 +++----
target/ppc/translate.c | 12 ++--
target/ppc/translate_init.c | 126 +++++++-----------------------------
13 files changed, 263 insertions(+), 248 deletions(-)
--
2.14.3
- [Qemu-ppc] [PATCH for-2.13 00/13] target/ppc: Assorted cpu cleanups (esp. hash64 MMU),
David Gibson <=
- [Qemu-ppc] [PATCH for-2.13 02/13] target/ppc: Simplify cpu valid check in ppc_cpu_realize, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 06/13] target/ppc: Move page size setup to helper function, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 11/13] target/ppc: Remove unnecessary POWERPC_MMU_V3 flag from mmu_model, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 01/13] target/ppc: Standardize instance_init and realize function names, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 05/13] target/ppc: Remove fallback 64k pagesize information, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 03/13] target/ppc: Pass cpu instead of env to ppc_create_page_sizes_prop(), David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 08/13] target/ppc: Make hash64_opts field mandatory for 64-bit hash MMUs, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 10/13] target/ppc: Fold ci_large_pages flag into PPCHash64Options, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 04/13] target/ppc: Avoid taking "env" parameter to mmu-hash64 functions, David Gibson, 2018/04/04
- [Qemu-ppc] [PATCH for-2.13 09/13] target/ppc: Move 1T segment and AMR options to PPCHash64Options, David Gibson, 2018/04/04