]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Rename 'hw/core/tcg-cpu-ops.h' -> 'accel/tcg/cpu-ops.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 23 Jan 2025 23:03:40 +0000 (00:03 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 6 Mar 2025 14:46:17 +0000 (15:46 +0100)
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>

37 files changed:
MAINTAINERS
accel/tcg/cpu-exec.c
accel/tcg/cputlb.c
accel/tcg/translate-all.c
accel/tcg/user-exec.c
accel/tcg/watchpoint.c
bsd-user/signal.c
hw/mips/jazz.c
include/accel/tcg/cpu-ops.h [moved from include/hw/core/tcg-cpu-ops.h with 100% similarity]
linux-user/signal.c
system/physmem.c
target/alpha/cpu.c
target/arm/cpu.c
target/arm/tcg/cpu-v7m.c
target/arm/tcg/cpu32.c
target/arm/tcg/mte_helper.c
target/arm/tcg/sve_helper.c
target/avr/cpu.c
target/avr/helper.c
target/hexagon/cpu.c
target/hppa/cpu.c
target/i386/tcg/tcg-cpu.c
target/loongarch/cpu.c
target/m68k/cpu.c
target/microblaze/cpu.c
target/mips/cpu.c
target/openrisc/cpu.c
target/ppc/cpu_init.c
target/riscv/cpu_helper.c
target/riscv/tcg/tcg-cpu.c
target/rx/cpu.c
target/s390x/cpu.c
target/s390x/tcg/mem_helper.c
target/sh4/cpu.c
target/sparc/cpu.c
target/tricore/cpu.c
target/xtensa/cpu.c

index 692628cd7801f2f5b7d18ca451bed3439b01e217..2d9ba810851c5f9adf02a18f5abe1077c23e8292 100644 (file)
@@ -175,7 +175,7 @@ F: include/exec/helper-info.c.inc
 F: include/exec/page-protection.h
 F: include/system/cpus.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: util/cpuinfo-*.c
 F: include/tcg/
index be2ba199d3d76e93aa93a5c82725d189b682798c..3a3c45f52ed84167a1abfd2d5c31860b2527bffe 100644 (file)
@@ -22,7 +22,7 @@
 #include "qapi/error.h"
 #include "qapi/type-helpers.h"
 #include "hw/core/cpu.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "trace.h"
 #include "disas/disas.h"
 #include "exec/cpu-common.h"
index ad158050a138b585b4eeb9a17281d71dc8967529..c8761683a0a6774f787a7a3dc2619b6bedd0ceec 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "qemu/osdep.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/page-protection.h"
 #include "exec/memory.h"
index d4189c73860da6e96e8ec9cfaaaac8652737dd7a..786e2f6f1a7dfef276d4c60e8ebd93bf4b047f47 100644 (file)
@@ -58,7 +58,7 @@
 #include "system/cpu-timers.h"
 #include "system/tcg.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-hash.h"
 #include "tb-context.h"
index 0561c4f6dc75870c95ab66b08db092638e952e1d..c4454100ad77cfc37c6330e096b12e391f3b2f86 100644 (file)
@@ -17,7 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "qemu/osdep.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "disas/disas.h"
 #include "exec/exec-all.h"
 #include "tcg/tcg.h"
index af57d182d5bf72dcd0cb86665ac0ed17bd52cab2..40112b2b2e70fe99c8f0041c13d45db6c47f9ea5 100644 (file)
@@ -26,7 +26,7 @@
 #include "tb-internal.h"
 #include "system/tcg.h"
 #include "system/replay.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "hw/core/cpu.h"
 #include "internal-common.h"
 
index ff2ccbbf605af01ac855c830501f8ca72302bd4c..ab1d9ddd50f64d85e85800ad0be3da156941833c 100644 (file)
@@ -29,7 +29,7 @@
 #include "gdbstub/user.h"
 #include "signal-common.h"
 #include "trace.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "host-signal.h"
 
 /* target_siginfo_t must fit in gdbstub's siginfo save area. */
index c89610639a9e0fbe4e2d101897a5bbf08580fce6..1700c3765ded0426d6a4248ac0f5aac5cbd4759b 100644 (file)
@@ -50,7 +50,7 @@
 #include "qemu/error-report.h"
 #include "qemu/help_option.h"
 #ifdef CONFIG_TCG
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #endif /* CONFIG_TCG */
 #include "cpu.h"
 
index 81a98c6d02f5db98eb1c8d161107b244bb15059b..4799b79dedee12c902d385baf2b2dec9921044f7 100644 (file)
@@ -21,7 +21,7 @@
 #include "qemu/cutils.h"
 #include "gdbstub/user.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/resource.h>
index eff8b55c2dda86c25781fa4548dcf24c7e13132c..8c1736f84ee758a691d4e205235836d56d2ddbc2 100644 (file)
@@ -28,7 +28,7 @@
 #include "qemu/lockable.h"
 
 #ifdef CONFIG_TCG
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #endif /* CONFIG_TCG */
 
 #include "exec/exec-all.h"
index f5dd744987618974d32cb36feab8957d54960b79..57e41fcd784a8ecc07fe50358a3c2c0bf08ee07b 100644 (file)
@@ -227,7 +227,7 @@ static const struct SysemuCPUOps alpha_sysemu_ops = {
 };
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps alpha_tcg_ops = {
     .initialize = alpha_translate_init,
index 656070afb5972395eb99fe0692aedd2162483649..ac1ceec2110a0424aae84736fe0949d720bb5409 100644 (file)
@@ -29,7 +29,7 @@
 #include "cpu.h"
 #ifdef CONFIG_TCG
 #include "exec/translation-block.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #endif /* CONFIG_TCG */
 #include "internals.h"
 #include "cpu-features.h"
index 03acdf83e006866a9202f869d86945df4a9a2eee..29a41fde694b3bd36848f61eb33bfef5bce1ec9c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "qemu/osdep.h"
 #include "cpu.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "internals.h"
 
 #if !defined(CONFIG_USER_ONLY)
index 0f1c5bc87e886775d0444b27ca8b09dd75bd44ea..2c45b7eddda730059508d6dbddd53bac0d593eea 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "qemu/osdep.h"
 #include "cpu.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "internals.h"
 #include "target/arm/idau.h"
 #if !defined(CONFIG_USER_ONLY)
index f72ce2ae0d4fa3d2e8235e11379b86ccd54065d8..5d6d8a17ae89b3c3d08313d4ad06fd27be64a618 100644 (file)
@@ -31,7 +31,7 @@
 #endif
 #include "exec/cpu_ldst.h"
 #include "exec/helper-proto.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "qapi/error.h"
 #include "qemu/guest-random.h"
 #include "mte_helper.h"
index c206ca65ceba77109d71e141e0a09bdcaa7a7fc4..d786b4b111898e781523d07192651c7965a107da 100644 (file)
@@ -28,7 +28,7 @@
 #include "tcg/tcg.h"
 #include "vec_internal.h"
 #include "sve_ldst_internal.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #ifdef CONFIG_USER_ONLY
 #include "user/page-protection.h"
 #endif
index 8a126ff32228220ff8b3416babf99e55cbcc1cdb..5a0e21465e5ecc2c4918d5967bc2ce4c1ae48b11 100644 (file)
@@ -203,7 +203,7 @@ static const struct SysemuCPUOps avr_sysemu_ops = {
     .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 = {
     .initialize = avr_cpu_tcg_init,
index 345708a1b39fb07a6ed12d272575413746e503fd..9ea6870e44dcadf1c9f1beb25711acea29ad7e96 100644 (file)
@@ -22,7 +22,7 @@
 #include "qemu/log.h"
 #include "qemu/error-report.h"
 #include "cpu.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
index 0b7fc98f6ce192bba953bec448f84fbba76c6d98..238e63bcea424e897e32a091dfccfd3c256abb9b 100644 (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 = {
     .initialize = hexagon_translate_init,
index 5655677431c688c30e9f4f1b18fcc029d20cb6e6..4bb5cff624e9223f966ff2abc9c056532d461886 100644 (file)
@@ -245,7 +245,7 @@ static const struct SysemuCPUOps hppa_sysemu_ops = {
 };
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps hppa_tcg_ops = {
     .initialize = hppa_translate_init,
index 14ee038079a7d344e871b24de7a14f55db904a9a..f09ee813ac99901d07311e09bd32b1e0f416ccd4 100644 (file)
@@ -105,7 +105,7 @@ static bool x86_debug_check_breakpoint(CPUState *cs)
 }
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps x86_tcg_ops = {
     .initialize = tcg_x86_init,
index ac514a15fba8450b5470157dafeb12e921394794..b4b82425b18c7a7ca9c928feaeba71382169ba4b 100644 (file)
@@ -857,7 +857,7 @@ static void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags)
 }
 
 #ifdef CONFIG_TCG
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps loongarch_tcg_ops = {
     .initialize = loongarch_translate_init,
index 2617d8f6ede14a4e17463b50c9ced050c8e9f9c5..eedda07c2ab4d76ad4b81688f645ce8402ac53a0 100644 (file)
@@ -582,7 +582,7 @@ static const struct SysemuCPUOps m68k_sysemu_ops = {
 };
 #endif /* !CONFIG_USER_ONLY */
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps m68k_tcg_ops = {
     .initialize = m68k_tcg_init,
index f114789abd82447fb6241295cb0b38c8dd62565f..13d194cef88075dfd0ca33277dd054c6d47ca436 100644 (file)
@@ -419,7 +419,7 @@ static const struct SysemuCPUOps mb_sysemu_ops = {
 };
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps mb_tcg_ops = {
     .initialize = mb_tcg_init,
index 47cd7cfdcef502a614d6b23e6f6ce243ec3835b9..0b267d2e507e09eaf5860c793b3c3d68d1d311e7 100644 (file)
@@ -544,7 +544,7 @@ static const Property mips_cpu_properties[] = {
 };
 
 #ifdef CONFIG_TCG
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 static const TCGCPUOps mips_tcg_ops = {
     .initialize = mips_tcg_init,
     .translate_code = mips_translate_code,
index b7bab0d7abf8df91938c8cbc19d72f8dd87ffa6b..0669ba2fd108f430778ae25aad29eb15c7a626df 100644 (file)
@@ -232,7 +232,7 @@ static const struct SysemuCPUOps openrisc_sysemu_ops = {
 };
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps openrisc_tcg_ops = {
     .initialize = openrisc_translate_init,
index 062a6e85fbaecf980dc90ffe4a5e9ac1e9a96265..425049ab0936ab35a8b631aaaf3ad550f7cad4df 100644 (file)
@@ -7430,7 +7430,7 @@ static const struct SysemuCPUOps ppc_sysemu_ops = {
 #endif
 
 #ifdef CONFIG_TCG
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps ppc_tcg_ops = {
   .initialize = ppc_translate_init,
index 3f5fd861a80b10f55a5ece577c71e20e42878976..34092f372df67635c9f081471923837c7c126195 100644 (file)
@@ -27,7 +27,7 @@
 #include "exec/page-protection.h"
 #include "instmap.h"
 #include "tcg/tcg-op.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "trace.h"
 #include "semihosting/common-semi.h"
 #include "system/cpu-timers.h"
index f1d971eec1f391b46b4efbf3db4704195533bbb6..70f4c7984aaae9f33265697821217a1bdee81d4b 100644 (file)
@@ -31,7 +31,7 @@
 #include "qemu/error-report.h"
 #include "qemu/log.h"
 #include "hw/core/accel-cpu.h"
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 #include "tcg/tcg.h"
 #ifndef CONFIG_USER_ONLY
 #include "hw/boards.h"
index 37a6fdd569b37c1769fd54ee0513c24fddff01a7..7d5fcbf76ac4582187b32b33ce7034b296092d45 100644 (file)
@@ -200,7 +200,7 @@ static const struct SysemuCPUOps rx_sysemu_ops = {
 };
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps rx_tcg_ops = {
     .initialize = rx_translate_init,
index 97d41c23de7c429fe0d92fab7266bcdca6163316..3bea014f9ee9cac05ee4c1431e9f2d429a380955 100644 (file)
@@ -322,7 +322,7 @@ static const Property s390x_cpu_properties[] = {
 #endif
 
 #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,
                           uint64_t *cs_base, uint32_t *pflags)
index c6ab2901e5ad0ccb34dbdce3ebe248a6ac368517..ea9fa64d6b440feb9de6e4fc6e39276eed5c7f4f 100644 (file)
@@ -28,7 +28,7 @@
 #include "exec/exec-all.h"
 #include "exec/page-protection.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/atomic128.h"
 
index ccfe222bdf31c7e3a04c07f36e6f11153d61e747..22cdf9b4e1224901fa539afabe088004119129fa 100644 (file)
@@ -256,7 +256,7 @@ static const struct SysemuCPUOps sh4_sysemu_ops = {
 };
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps superh_tcg_ops = {
     .initialize = sh4_translate_init,
index fbd38ec334a924640c1c30ca4faf16ca7d4c5785..e3b46137178d3ec3d558a06b403f229df7f4b458 100644 (file)
@@ -992,7 +992,7 @@ static const struct SysemuCPUOps sparc_sysemu_ops = {
 #endif
 
 #ifdef CONFIG_TCG
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps sparc_tcg_ops = {
     .initialize = sparc_tcg_init,
index 95202fadbfdffacb8409b4beb8e925be6eda9dfe..eb794674c8da196405d709614dc08e7bc446eff5 100644 (file)
@@ -168,7 +168,7 @@ static const struct SysemuCPUOps tricore_sysemu_ops = {
     .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 = {
     .initialize = tricore_tcg_init,
index 4eb699d1f456e21c6d0a98e59187ea911110a10f..efbfe73fcfbc2d4434a37f676f9b172b95eccae1 100644 (file)
@@ -228,7 +228,7 @@ static const struct SysemuCPUOps xtensa_sysemu_ops = {
 };
 #endif
 
-#include "hw/core/tcg-cpu-ops.h"
+#include "accel/tcg/cpu-ops.h"
 
 static const TCGCPUOps xtensa_tcg_ops = {
     .initialize = xtensa_translate_init,