Hi Richard, Here is my patch queue based on your tcg-next tree fixed.
You can find it as commit 511d57c091f on my repository: https://gitlab.com/philmd/qemu/-/tree/tcg-next-fixed Thanks, Phil. Since v1: - Deferred warning change and updated desc (patches 40 & 42) Since v2: - Rebased & addressed review comments Philippe Mathieu-Daudé (19): target/riscv: Do not expose rv128 CPU on user mode emulation tcg: Include missing 'cpu.h' in translate-all.c tcg: Declare TARGET_INSN_START_EXTRA_WORDS in 'cpu-param.h' tcg: Always define TARGET_INSN_START_EXTRA_WORDS exec: Restrict 'cpu-ldst-common.h' to accel/tcg/ exec: Restrict 'cpu_ldst.h' to accel/tcg/ exec: Do not include 'accel/tcg/cpu-ldst.h' in 'exec-all.h' tcg: Always define TCG_GUEST_DEFAULT_MO tcg: Simplify tcg_req_mo() macro tcg: Define guest_default_memory_order in TCGCPUOps tcg: Remove use of TCG_GUEST_DEFAULT_MO in tb_gen_code() tcg: Propagate CPUState argument to cpu_req_mo() tcg: Have tcg_req_mo() use TCGCPUOps::guest_default_memory_order tcg: Remove the TCG_GUEST_DEFAULT_MO definition globally tcg: Move cpu_req_mo() macro to target-agnostic 'backend-ldst.h' tcg: Move qemu_tcg_mttcg_enabled() to 'system/tcg.h' tcg: Convert TCGState::mttcg_enabled to TriState tcg: Factor mttcg_init() out tcg: Convert TARGET_SUPPORTS_MTTCG to TCGCPUOps::mttcg_supported field docs/devel/multi-thread-tcg.rst | 6 +- configs/targets/aarch64-softmmu.mak | 1 - configs/targets/alpha-softmmu.mak | 1 - configs/targets/arm-softmmu.mak | 1 - configs/targets/hppa-softmmu.mak | 1 - configs/targets/i386-softmmu.mak | 1 - configs/targets/loongarch64-softmmu.mak | 1 - configs/targets/microblaze-softmmu.mak | 1 - configs/targets/microblazeel-softmmu.mak | 1 - configs/targets/mips-softmmu.mak | 1 - configs/targets/mipsel-softmmu.mak | 1 - configs/targets/or1k-softmmu.mak | 1 - configs/targets/ppc64-softmmu.mak | 1 - configs/targets/riscv32-softmmu.mak | 1 - configs/targets/riscv64-softmmu.mak | 1 - configs/targets/s390x-softmmu.mak | 1 - configs/targets/sparc-softmmu.mak | 1 - configs/targets/sparc64-softmmu.mak | 1 - configs/targets/x86_64-softmmu.mak | 1 - configs/targets/xtensa-softmmu.mak | 1 - configs/targets/xtensaeb-softmmu.mak | 1 - accel/tcg/backend-ldst.h | 41 +++++++++ accel/tcg/internal-target.h | 35 -------- bsd-user/qemu.h | 2 +- include/{exec => accel/tcg}/cpu-ldst-common.h | 6 +- .../{exec/cpu_ldst.h => accel/tcg/cpu-ldst.h} | 8 +- include/accel/tcg/cpu-ops.h | 16 ++++ include/exec/exec-all.h | 3 - include/exec/poison.h | 1 - include/hw/core/cpu.h | 9 -- include/system/tcg.h | 8 ++ include/tcg/insn-start-words.h | 6 +- include/tcg/tcg-op.h | 2 +- linux-user/qemu.h | 2 +- target/alpha/cpu-param.h | 3 +- target/arm/cpu-param.h | 8 +- target/arm/cpu.h | 6 -- target/arm/tcg/sve_ldst_internal.h | 2 +- target/avr/cpu-param.h | 2 +- target/hexagon/cpu-param.h | 2 + target/hppa/cpu-param.h | 8 +- target/hppa/cpu.h | 2 - target/i386/cpu-param.h | 3 +- target/i386/cpu.h | 2 - target/loongarch/cpu-param.h | 2 +- target/m68k/cpu-param.h | 2 + target/m68k/cpu.h | 2 - target/microblaze/cpu-param.h | 3 +- target/microblaze/cpu.h | 2 - target/mips/cpu-param.h | 2 +- target/mips/cpu.h | 2 - target/openrisc/cpu-param.h | 2 +- target/openrisc/cpu.h | 2 - target/ppc/cpu-param.h | 2 +- target/riscv/cpu-param.h | 10 ++- target/riscv/cpu.h | 6 -- target/rx/cpu-param.h | 2 + target/s390x/cpu-param.h | 6 +- target/s390x/cpu.h | 2 - target/sh4/cpu-param.h | 2 + target/sh4/cpu.h | 2 - target/sparc/cpu-param.h | 23 +---- target/sparc/cpu.h | 1 - target/tricore/cpu-param.h | 2 + target/xtensa/cpu-param.h | 3 +- accel/tcg/cpu-exec.c | 1 + accel/tcg/cputlb.c | 23 ++--- accel/tcg/tcg-all.c | 84 +++++++++++-------- accel/tcg/translate-all.c | 7 +- accel/tcg/translator.c | 2 +- accel/tcg/user-exec.c | 23 ++--- target/alpha/cpu.c | 4 + target/alpha/mem_helper.c | 2 +- target/arm/cpu.c | 4 + target/arm/tcg/cpu-v7m.c | 4 + target/arm/tcg/helper-a64.c | 2 +- target/arm/tcg/m_helper.c | 2 +- target/arm/tcg/mte_helper.c | 2 +- target/arm/tcg/mve_helper.c | 2 +- target/arm/tcg/op_helper.c | 2 +- target/arm/tcg/pauth_helper.c | 2 +- target/arm/tcg/sme_helper.c | 2 +- target/arm/tcg/sve_helper.c | 1 + target/avr/cpu.c | 2 + target/avr/helper.c | 2 +- target/hexagon/cpu.c | 3 + target/hexagon/op_helper.c | 2 +- target/hexagon/translate.c | 2 +- target/hppa/cpu.c | 9 ++ target/hppa/op_helper.c | 2 +- target/i386/tcg/access.c | 2 +- target/i386/tcg/fpu_helper.c | 2 +- target/i386/tcg/mem_helper.c | 2 +- target/i386/tcg/mpx_helper.c | 2 +- target/i386/tcg/seg_helper.c | 2 +- target/i386/tcg/system/excp_helper.c | 2 +- target/i386/tcg/system/misc_helper.c | 2 +- target/i386/tcg/system/seg_helper.c | 2 +- target/i386/tcg/system/svm_helper.c | 2 +- target/i386/tcg/tcg-cpu.c | 5 ++ target/i386/tcg/user/seg_helper.c | 2 +- target/loongarch/cpu.c | 5 +- target/loongarch/tcg/csr_helper.c | 2 +- target/loongarch/tcg/fpu_helper.c | 2 +- target/loongarch/tcg/iocsr_helper.c | 2 +- target/loongarch/tcg/op_helper.c | 2 +- target/loongarch/tcg/tlb_helper.c | 2 +- target/m68k/cpu.c | 4 + target/m68k/fpu_helper.c | 2 +- target/m68k/op_helper.c | 2 +- target/microblaze/cpu.c | 6 +- target/microblaze/op_helper.c | 2 +- target/microblaze/translate.c | 2 +- target/mips/cpu.c | 3 + target/mips/tcg/ldst_helper.c | 2 +- target/mips/tcg/msa_helper.c | 2 +- target/mips/tcg/system/tlb_helper.c | 2 +- target/openrisc/cpu.c | 3 + target/ppc/cpu_init.c | 2 + target/ppc/mem_helper.c | 2 +- target/ppc/mmu_helper.c | 2 +- target/ppc/tcg-excp_helper.c | 2 +- target/riscv/cpu.c | 10 +-- target/riscv/op_helper.c | 2 +- target/riscv/tcg/tcg-cpu.c | 9 +- target/riscv/vector_helper.c | 2 +- target/riscv/zce_helper.c | 2 +- target/rx/cpu.c | 4 + target/rx/helper.c | 2 +- target/rx/op_helper.c | 2 +- target/s390x/cpu.c | 7 ++ target/s390x/tcg/crypto_helper.c | 2 +- target/s390x/tcg/int_helper.c | 2 +- target/s390x/tcg/mem_helper.c | 2 +- target/s390x/tcg/misc_helper.c | 2 +- target/s390x/tcg/vec_helper.c | 2 +- target/sh4/cpu.c | 4 + target/sh4/op_helper.c | 2 +- target/sparc/cpu.c | 24 ++++++ target/sparc/int32_helper.c | 2 +- target/sparc/ldst_helper.c | 2 +- target/tricore/cpu.c | 3 + target/tricore/op_helper.c | 2 +- target/tricore/translate.c | 2 +- target/xtensa/cpu.c | 4 + tcg/region.c | 4 +- 146 files changed, 357 insertions(+), 294 deletions(-) create mode 100644 accel/tcg/backend-ldst.h rename include/{exec => accel/tcg}/cpu-ldst-common.h (97%) rename include/{exec/cpu_ldst.h => accel/tcg/cpu-ldst.h} (99%) -- 2.47.1