On 22/4/25 21:28, Richard Henderson wrote:
From: Philippe Mathieu-Daudé <phi...@linaro.org>

Instead of having a compile-time TARGET_SUPPORTS_MTTCG definition,
have each target set the 'mttcg_supported' field in the TCGCPUOps
structure.


This part -->

Since so far we only emulate one target architecture at a time,
tcg_init_machine() gets whether MTTCG is supported via the
current CPU class (CPU_RESOLVING_TYPE).

Since TARGET_SUPPORTS_MTTCG isn't available anymore,
instead of emiting a warning when the 'thread' property
is set in tcg_set_thread(), emit it in tcg_init_machine()
where it is consumed.

<-- is now implemented by patch #144 "accel/tcg: Move mttcg warning
to tcg_init_machine" so can be removed.

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Anton Johansson <a...@rev.ng>
Reviewed-by: Pierrick Bouvier <pierrick.bouv...@linaro.org>
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Message-ID: <20250405161320.76854-17-phi...@linaro.org>
Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
  include/accel/tcg/cpu-ops.h              |  8 ++++++++
  include/exec/poison.h                    |  1 -
  accel/tcg/tcg-all.c                      | 11 +++++------
  target/alpha/cpu.c                       |  1 +
  target/arm/cpu.c                         |  1 +
  target/arm/tcg/cpu-v7m.c                 |  1 +
  target/avr/cpu.c                         |  1 +
  target/hexagon/cpu.c                     |  1 +
  target/hppa/cpu.c                        |  1 +
  target/i386/tcg/tcg-cpu.c                |  1 +
  target/loongarch/cpu.c                   |  1 +
  target/m68k/cpu.c                        |  1 +
  target/microblaze/cpu.c                  |  1 +
  target/mips/cpu.c                        |  1 +
  target/openrisc/cpu.c                    |  1 +
  target/ppc/cpu_init.c                    |  1 +
  target/riscv/tcg/tcg-cpu.c               |  1 +
  target/rx/cpu.c                          |  1 +
  target/s390x/cpu.c                       |  1 +
  target/sh4/cpu.c                         |  1 +
  target/sparc/cpu.c                       |  1 +
  target/tricore/cpu.c                     |  1 +
  target/xtensa/cpu.c                      |  1 +
  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 -
  docs/devel/multi-thread-tcg.rst          |  2 +-
  44 files changed, 34 insertions(+), 28 deletions(-)


Reply via email to