accel/tcg: Rename 'hw/core/tcg-cpu-ops.h' -> 'accel/tcg/cpu-ops.h'

TCGCPUOps structure makes more sense in the accelerator context
rather than hardware emulation. Move it under the accel/tcg/ scope.

Mechanical change doing:

 $  sed -i -e 's,hw/core/tcg-cpu-ops.h,accel/tcg/cpu-ops.h,g' \
   $(git grep -l hw/core/tcg-cpu-ops.h)

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250123234415.59850-11-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2025-01-24 00:03:40 +01:00
parent fb26a3fd0e
commit 1501743654
37 changed files with 36 additions and 36 deletions

View file

@ -175,7 +175,7 @@ F: include/exec/helper-info.c.inc
F: include/exec/page-protection.h F: include/exec/page-protection.h
F: include/system/cpus.h F: include/system/cpus.h
F: include/system/tcg.h F: include/system/tcg.h
F: include/hw/core/tcg-cpu-ops.h F: include/accel/tcg/cpu-ops.h
F: host/include/*/host/cpuinfo.h F: host/include/*/host/cpuinfo.h
F: util/cpuinfo-*.c F: util/cpuinfo-*.c
F: include/tcg/ F: include/tcg/

View file

@ -22,7 +22,7 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "qapi/type-helpers.h" #include "qapi/type-helpers.h"
#include "hw/core/cpu.h" #include "hw/core/cpu.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "trace.h" #include "trace.h"
#include "disas/disas.h" #include "disas/disas.h"
#include "exec/cpu-common.h" #include "exec/cpu-common.h"

View file

@ -19,7 +19,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
#include "exec/page-protection.h" #include "exec/page-protection.h"
#include "exec/memory.h" #include "exec/memory.h"

View file

@ -58,7 +58,7 @@
#include "system/cpu-timers.h" #include "system/cpu-timers.h"
#include "system/tcg.h" #include "system/tcg.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "tb-jmp-cache.h" #include "tb-jmp-cache.h"
#include "tb-hash.h" #include "tb-hash.h"
#include "tb-context.h" #include "tb-context.h"

View file

@ -17,7 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "disas/disas.h" #include "disas/disas.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
#include "tcg/tcg.h" #include "tcg/tcg.h"

View file

@ -26,7 +26,7 @@
#include "tb-internal.h" #include "tb-internal.h"
#include "system/tcg.h" #include "system/tcg.h"
#include "system/replay.h" #include "system/replay.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "hw/core/cpu.h" #include "hw/core/cpu.h"
#include "internal-common.h" #include "internal-common.h"

View file

@ -29,7 +29,7 @@
#include "gdbstub/user.h" #include "gdbstub/user.h"
#include "signal-common.h" #include "signal-common.h"
#include "trace.h" #include "trace.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "host-signal.h" #include "host-signal.h"
/* target_siginfo_t must fit in gdbstub's siginfo save area. */ /* target_siginfo_t must fit in gdbstub's siginfo save area. */

View file

@ -50,7 +50,7 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/help_option.h" #include "qemu/help_option.h"
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#endif /* CONFIG_TCG */ #endif /* CONFIG_TCG */
#include "cpu.h" #include "cpu.h"

View file

@ -21,7 +21,7 @@
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include "gdbstub/user.h" #include "gdbstub/user.h"
#include "exec/page-protection.h" #include "exec/page-protection.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include <sys/ucontext.h> #include <sys/ucontext.h>
#include <sys/resource.h> #include <sys/resource.h>

View file

@ -28,7 +28,7 @@
#include "qemu/lockable.h" #include "qemu/lockable.h"
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#endif /* CONFIG_TCG */ #endif /* CONFIG_TCG */
#include "exec/exec-all.h" #include "exec/exec-all.h"

View file

@ -227,7 +227,7 @@ static const struct SysemuCPUOps alpha_sysemu_ops = {
}; };
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps alpha_tcg_ops = { static const TCGCPUOps alpha_tcg_ops = {
.initialize = alpha_translate_init, .initialize = alpha_translate_init,

View file

@ -29,7 +29,7 @@
#include "cpu.h" #include "cpu.h"
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "exec/translation-block.h" #include "exec/translation-block.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#endif /* CONFIG_TCG */ #endif /* CONFIG_TCG */
#include "internals.h" #include "internals.h"
#include "cpu-features.h" #include "cpu-features.h"

View file

@ -10,7 +10,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "internals.h" #include "internals.h"
#if !defined(CONFIG_USER_ONLY) #if !defined(CONFIG_USER_ONLY)

View file

@ -10,7 +10,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "internals.h" #include "internals.h"
#include "target/arm/idau.h" #include "target/arm/idau.h"
#if !defined(CONFIG_USER_ONLY) #if !defined(CONFIG_USER_ONLY)

View file

@ -31,7 +31,7 @@
#endif #endif
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/guest-random.h" #include "qemu/guest-random.h"
#include "mte_helper.h" #include "mte_helper.h"

View file

@ -28,7 +28,7 @@
#include "tcg/tcg.h" #include "tcg/tcg.h"
#include "vec_internal.h" #include "vec_internal.h"
#include "sve_ldst_internal.h" #include "sve_ldst_internal.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#ifdef CONFIG_USER_ONLY #ifdef CONFIG_USER_ONLY
#include "user/page-protection.h" #include "user/page-protection.h"
#endif #endif

View file

@ -203,7 +203,7 @@ static const struct SysemuCPUOps avr_sysemu_ops = {
.get_phys_page_debug = avr_cpu_get_phys_page_debug, .get_phys_page_debug = avr_cpu_get_phys_page_debug,
}; };
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps avr_tcg_ops = { static const TCGCPUOps avr_tcg_ops = {
.initialize = avr_cpu_tcg_init, .initialize = avr_cpu_tcg_init,

View file

@ -22,7 +22,7 @@
#include "qemu/log.h" #include "qemu/log.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "cpu.h" #include "cpu.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
#include "exec/page-protection.h" #include "exec/page-protection.h"
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"

View file

@ -321,7 +321,7 @@ static void hexagon_cpu_init(Object *obj)
{ {
} }
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps hexagon_tcg_ops = { static const TCGCPUOps hexagon_tcg_ops = {
.initialize = hexagon_translate_init, .initialize = hexagon_translate_init,

View file

@ -245,7 +245,7 @@ static const struct SysemuCPUOps hppa_sysemu_ops = {
}; };
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps hppa_tcg_ops = { static const TCGCPUOps hppa_tcg_ops = {
.initialize = hppa_translate_init, .initialize = hppa_translate_init,

View file

@ -105,7 +105,7 @@ static bool x86_debug_check_breakpoint(CPUState *cs)
} }
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps x86_tcg_ops = { static const TCGCPUOps x86_tcg_ops = {
.initialize = tcg_x86_init, .initialize = tcg_x86_init,

View file

@ -857,7 +857,7 @@ static void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags)
} }
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps loongarch_tcg_ops = { static const TCGCPUOps loongarch_tcg_ops = {
.initialize = loongarch_translate_init, .initialize = loongarch_translate_init,

View file

@ -582,7 +582,7 @@ static const struct SysemuCPUOps m68k_sysemu_ops = {
}; };
#endif /* !CONFIG_USER_ONLY */ #endif /* !CONFIG_USER_ONLY */
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps m68k_tcg_ops = { static const TCGCPUOps m68k_tcg_ops = {
.initialize = m68k_tcg_init, .initialize = m68k_tcg_init,

View file

@ -419,7 +419,7 @@ static const struct SysemuCPUOps mb_sysemu_ops = {
}; };
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps mb_tcg_ops = { static const TCGCPUOps mb_tcg_ops = {
.initialize = mb_tcg_init, .initialize = mb_tcg_init,

View file

@ -544,7 +544,7 @@ static const Property mips_cpu_properties[] = {
}; };
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps mips_tcg_ops = { static const TCGCPUOps mips_tcg_ops = {
.initialize = mips_tcg_init, .initialize = mips_tcg_init,
.translate_code = mips_translate_code, .translate_code = mips_translate_code,

View file

@ -232,7 +232,7 @@ static const struct SysemuCPUOps openrisc_sysemu_ops = {
}; };
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps openrisc_tcg_ops = { static const TCGCPUOps openrisc_tcg_ops = {
.initialize = openrisc_translate_init, .initialize = openrisc_translate_init,

View file

@ -7430,7 +7430,7 @@ static const struct SysemuCPUOps ppc_sysemu_ops = {
#endif #endif
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps ppc_tcg_ops = { static const TCGCPUOps ppc_tcg_ops = {
.initialize = ppc_translate_init, .initialize = ppc_translate_init,

View file

@ -27,7 +27,7 @@
#include "exec/page-protection.h" #include "exec/page-protection.h"
#include "instmap.h" #include "instmap.h"
#include "tcg/tcg-op.h" #include "tcg/tcg-op.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "trace.h" #include "trace.h"
#include "semihosting/common-semi.h" #include "semihosting/common-semi.h"
#include "system/cpu-timers.h" #include "system/cpu-timers.h"

View file

@ -31,7 +31,7 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/log.h" #include "qemu/log.h"
#include "hw/core/accel-cpu.h" #include "hw/core/accel-cpu.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "tcg/tcg.h" #include "tcg/tcg.h"
#ifndef CONFIG_USER_ONLY #ifndef CONFIG_USER_ONLY
#include "hw/boards.h" #include "hw/boards.h"

View file

@ -200,7 +200,7 @@ static const struct SysemuCPUOps rx_sysemu_ops = {
}; };
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps rx_tcg_ops = { static const TCGCPUOps rx_tcg_ops = {
.initialize = rx_translate_init, .initialize = rx_translate_init,

View file

@ -322,7 +322,7 @@ static const Property s390x_cpu_properties[] = {
#endif #endif
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
void cpu_get_tb_cpu_state(CPUS390XState *env, vaddr *pc, void cpu_get_tb_cpu_state(CPUS390XState *env, vaddr *pc,
uint64_t *cs_base, uint32_t *pflags) uint64_t *cs_base, uint32_t *pflags)

View file

@ -28,7 +28,7 @@
#include "exec/exec-all.h" #include "exec/exec-all.h"
#include "exec/page-protection.h" #include "exec/page-protection.h"
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
#include "qemu/int128.h" #include "qemu/int128.h"
#include "qemu/atomic128.h" #include "qemu/atomic128.h"

View file

@ -256,7 +256,7 @@ static const struct SysemuCPUOps sh4_sysemu_ops = {
}; };
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps superh_tcg_ops = { static const TCGCPUOps superh_tcg_ops = {
.initialize = sh4_translate_init, .initialize = sh4_translate_init,

View file

@ -992,7 +992,7 @@ static const struct SysemuCPUOps sparc_sysemu_ops = {
#endif #endif
#ifdef CONFIG_TCG #ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps sparc_tcg_ops = { static const TCGCPUOps sparc_tcg_ops = {
.initialize = sparc_tcg_init, .initialize = sparc_tcg_init,

View file

@ -168,7 +168,7 @@ static const struct SysemuCPUOps tricore_sysemu_ops = {
.get_phys_page_debug = tricore_cpu_get_phys_page_debug, .get_phys_page_debug = tricore_cpu_get_phys_page_debug,
}; };
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps tricore_tcg_ops = { static const TCGCPUOps tricore_tcg_ops = {
.initialize = tricore_tcg_init, .initialize = tricore_tcg_init,

View file

@ -228,7 +228,7 @@ static const struct SysemuCPUOps xtensa_sysemu_ops = {
}; };
#endif #endif
#include "hw/core/tcg-cpu-ops.h" #include "accel/tcg/cpu-ops.h"
static const TCGCPUOps xtensa_tcg_ops = { static const TCGCPUOps xtensa_tcg_ops = {
.initialize = xtensa_translate_init, .initialize = xtensa_translate_init,