[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [RFC for-2.13 00/12] target/ppc: Assorted cpu cleanups (esp.

From: David Gibson
Subject: [Qemu-ppc] [RFC for-2.13 00/12] target/ppc: Assorted cpu cleanups (esp. hash64 MMU)
Date: Tue, 27 Mar 2018 15:37:29 +1100

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

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(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]