This is the second half of rth's patch cleaning up MMU address translation, which is not complete but is a good start! This patch series is also required to finally support disable-tcg.
The final patch fixes the bug mentioned by rth and farosas, that cedric did not confirm actually happens, but agreed is a good cleanup either way. Changes for v2: * rebased on ppc-for-6.1 * added the bugfix Bruno Larsen (billionai) (1): target/ppc: fix address translation bug for radix mmus Richard Henderson (9): target/ppc: Remove PowerPCCPUClass.handle_mmu_fault target/ppc: Use MMUAccessType with *_handle_mmu_fault target/ppc: Push real-mode handling into ppc_radix64_xlate target/ppc: Use bool success for ppc_radix64_xlate target/ppc: Split out ppc_hash64_xlate target/ppc: Split out ppc_hash32_xlate target/ppc: Split out ppc_jumbo_xlate target/ppc: Introduce ppc_xlate target/ppc: Restrict ppc_cpu_tlb_fill to TCG target/ppc/cpu-qom.h | 1 - target/ppc/cpu_init.c | 45 -------- target/ppc/internal.h | 13 +++ target/ppc/mmu-book3s-v3.c | 19 ---- target/ppc/mmu-book3s-v3.h | 5 - target/ppc/mmu-hash32.c | 217 ++++++++++++++++--------------------- target/ppc/mmu-hash32.h | 6 +- target/ppc/mmu-hash64.c | 118 +++++++------------- target/ppc/mmu-hash64.h | 6 +- target/ppc/mmu-radix64.c | 152 ++++++++++---------------- target/ppc/mmu-radix64.h | 6 +- target/ppc/mmu_helper.c | 201 +++++++++++++++++----------------- 12 files changed, 313 insertions(+), 476 deletions(-) -- 2.17.1