On 21/03/25, Philippe Mathieu-Daudé wrote:
> Instead of having a compile-time TARGET_SUPPORTS_MTTCG definition,
> have each target set the 'mttcg_supported' field in the TCGCPUOps
> structure.
> 
> Since so far we only emulate one target architecture at a time,
> tcg_init_machine() gets whether MTTCG is supported via the
> &first_cpu global.
> 
> Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
> ---
>  docs/devel/multi-thread-tcg.rst          | 2 +-
>  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 -
>  include/accel/tcg/cpu-ops.h              | 8 ++++++++
>  include/exec/poison.h                    | 1 -
>  accel/tcg/tcg-all.c                      | 7 ++-----
>  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 +
>  44 files changed, 31 insertions(+), 27 deletions(-)

Nice!

Reviewed-by: Anton Johansson <a...@rev.ng>

Reply via email to