This patch series aims to clean up some of the code mmu_helper.c, including removing the #includes inside ifdef.
This version of the patch has been rebased on the current ppc-for-6.2 branch as adapted accordingly. v4: Moved functions declarations from cpu.h to internal.h when possible. Comments are welcome, thanks, Lucas Mateus. Lucas Mateus Castro (alqotel) (3): target/ppc: divided mmu_helper.c in 2 files target/ppc: moved ppc_store_sdr1 to mmu_common.c target/ppc: moved store_40x_sler to helper_regs.c target/ppc/cpu.c | 28 - target/ppc/cpu.h | 9 + target/ppc/helper_regs.c | 12 + target/ppc/internal.h | 39 + target/ppc/meson.build | 8 +- target/ppc/mmu_common.c | 1620 ++++++++++++++++++++++++++++++++++++++ target/ppc/mmu_helper.c | 1590 +------------------------------------ 7 files changed, 1686 insertions(+), 1620 deletions(-) create mode 100644 target/ppc/mmu_common.c -- 2.17.1