]> git.proxmox.com Git - mirror_qemu.git/commit - target/xtensa/cpu.c
cpu: tcg_ops: move to tcg-cpu-ops.h, keep a pointer in CPUClass
authorClaudio Fontana <cfontana@suse.de>
Thu, 4 Feb 2021 16:39:23 +0000 (17:39 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Feb 2021 20:24:15 +0000 (10:24 -1000)
commit78271684719f34c1cc19f895e089f2f19b69698d
tree5f47406eb8c2be4e37e411e5053678e4d91e09d3
parentc73bdb35a91fb6b17c2c93b1ba381fc88a406f8d
cpu: tcg_ops: move to tcg-cpu-ops.h, keep a pointer in CPUClass

we cannot in principle make the TCG Operations field definitions
conditional on CONFIG_TCG in code that is included by both common_ss
and specific_ss modules.

Therefore, what we can do safely to restrict the TCG fields to TCG-only
builds, is to move all tcg cpu operations into a separate header file,
which is only included by TCG, target-specific code.

This leaves just a NULL pointer in the cpu.h for the non-TCG builds.

This also tidies up the code in all targets a bit, having all TCG cpu
operations neatly contained by a dedicated data struct.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Message-Id: <20210204163931.7358-16-cfontana@suse.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
36 files changed:
MAINTAINERS
accel/tcg/cpu-exec.c
accel/tcg/cputlb.c
accel/tcg/user-exec.c
hw/mips/jazz.c
include/hw/core/cpu.h
include/hw/core/tcg-cpu-ops.h [new file with mode: 0644]
softmmu/physmem.c
target/alpha/cpu.c
target/arm/cpu.c
target/arm/cpu64.c
target/arm/cpu_tcg.c
target/arm/internals.h
target/avr/cpu.c
target/avr/helper.c
target/cris/cpu.c
target/cris/helper.c
target/hppa/cpu.c
target/i386/tcg/tcg-cpu.c
target/lm32/cpu.c
target/m68k/cpu.c
target/microblaze/cpu.c
target/mips/cpu.c
target/moxie/cpu.c
target/nios2/cpu.c
target/openrisc/cpu.c
target/ppc/translate_init.c.inc
target/riscv/cpu.c
target/rx/cpu.c
target/s390x/cpu.c
target/sh4/cpu.c
target/sparc/cpu.c
target/tilegx/cpu.c
target/tricore/cpu.c
target/unicore32/cpu.c
target/xtensa/cpu.c