瀏覽代碼

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>
Philippe Mathieu-Daudé 7 月之前
父節點
當前提交
1501743654

+ 1 - 1
MAINTAINERS

@@ -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/

+ 1 - 1
accel/tcg/cpu-exec.c

@@ -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"

+ 1 - 1
accel/tcg/cputlb.c

@@ -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"

+ 1 - 1
accel/tcg/translate-all.c

@@ -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"

+ 1 - 1
accel/tcg/user-exec.c

@@ -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"

+ 1 - 1
accel/tcg/watchpoint.c

@@ -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"
 
 

+ 1 - 1
bsd-user/signal.c

@@ -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. */

+ 1 - 1
hw/mips/jazz.c

@@ -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"
 
 

+ 0 - 0
include/hw/core/tcg-cpu-ops.h → include/accel/tcg/cpu-ops.h


+ 1 - 1
linux-user/signal.c

@@ -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>

+ 1 - 1
system/physmem.c

@@ -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"

+ 1 - 1
target/alpha/cpu.c

@@ -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,

+ 1 - 1
target/arm/cpu.c

@@ -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"

+ 1 - 1
target/arm/tcg/cpu-v7m.c

@@ -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)

+ 1 - 1
target/arm/tcg/cpu32.c

@@ -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)

+ 1 - 1
target/arm/tcg/mte_helper.c

@@ -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"

+ 1 - 1
target/arm/tcg/sve_helper.c

@@ -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

+ 1 - 1
target/avr/cpu.c

@@ -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,

+ 1 - 1
target/avr/helper.c

@@ -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"

+ 1 - 1
target/hexagon/cpu.c

@@ -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,

+ 1 - 1
target/hppa/cpu.c

@@ -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,

+ 1 - 1
target/i386/tcg/tcg-cpu.c

@@ -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,

+ 1 - 1
target/loongarch/cpu.c

@@ -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,

+ 1 - 1
target/m68k/cpu.c

@@ -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,

+ 1 - 1
target/microblaze/cpu.c

@@ -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,

+ 1 - 1
target/mips/cpu.c

@@ -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,

+ 1 - 1
target/openrisc/cpu.c

@@ -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,

+ 1 - 1
target/ppc/cpu_init.c

@@ -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,

+ 1 - 1
target/riscv/cpu_helper.c

@@ -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"

+ 1 - 1
target/riscv/tcg/tcg-cpu.c

@@ -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"

+ 1 - 1
target/rx/cpu.c

@@ -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,

+ 1 - 1
target/s390x/cpu.c

@@ -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)

+ 1 - 1
target/s390x/tcg/mem_helper.c

@@ -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"
 
 

+ 1 - 1
target/sh4/cpu.c

@@ -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,

+ 1 - 1
target/sparc/cpu.c

@@ -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,

+ 1 - 1
target/tricore/cpu.c

@@ -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,

+ 1 - 1
target/xtensa/cpu.c

@@ -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,