diff mbox series

[16/18] user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h'

Message ID 20241212185341.2857-17-philmd@linaro.org
State New
Headers show
Series accel/tcg: Extract user APIs out of 'exec/[cpu, exec]-all.h' | expand

Commit Message

Philippe Mathieu-Daudé Dec. 12, 2024, 6:53 p.m. UTC
"linux-user/cpu_loop-common.h" is generic enough to be used by
bsd-user, so rename it as "user/cpu_loop.h".

Mechanical change running:

  $ sed -i -e 's,cpu_loop-common.h,user/cpu_loop.h,' \
                $(git grep -l cpu_loop-common.h)

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 linux-user/cpu_loop-common.h => include/user/cpu_loop.h | 4 ++--
 linux-user/aarch64/cpu_loop.c                           | 2 +-
 linux-user/alpha/cpu_loop.c                             | 2 +-
 linux-user/arm/cpu_loop.c                               | 2 +-
 linux-user/hexagon/cpu_loop.c                           | 2 +-
 linux-user/hppa/cpu_loop.c                              | 2 +-
 linux-user/i386/cpu_loop.c                              | 2 +-
 linux-user/loongarch64/cpu_loop.c                       | 2 +-
 linux-user/m68k/cpu_loop.c                              | 2 +-
 linux-user/main.c                                       | 2 +-
 linux-user/microblaze/cpu_loop.c                        | 2 +-
 linux-user/mips/cpu_loop.c                              | 2 +-
 linux-user/openrisc/cpu_loop.c                          | 2 +-
 linux-user/ppc/cpu_loop.c                               | 2 +-
 linux-user/riscv/cpu_loop.c                             | 2 +-
 linux-user/s390x/cpu_loop.c                             | 2 +-
 linux-user/sh4/cpu_loop.c                               | 2 +-
 linux-user/sparc/cpu_loop.c                             | 2 +-
 linux-user/syscall.c                                    | 2 +-
 linux-user/xtensa/cpu_loop.c                            | 2 +-
 20 files changed, 21 insertions(+), 21 deletions(-)
 rename linux-user/cpu_loop-common.h => include/user/cpu_loop.h (95%)

Comments

Pierrick Bouvier Dec. 12, 2024, 7:27 p.m. UTC | #1
On 12/12/24 10:53, Philippe Mathieu-Daudé wrote:
> "linux-user/cpu_loop-common.h" is generic enough to be used by
> bsd-user, so rename it as "user/cpu_loop.h".
> 
> Mechanical change running:
> 
>    $ sed -i -e 's,cpu_loop-common.h,user/cpu_loop.h,' \
>                  $(git grep -l cpu_loop-common.h)
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   linux-user/cpu_loop-common.h => include/user/cpu_loop.h | 4 ++--
>   linux-user/aarch64/cpu_loop.c                           | 2 +-
>   linux-user/alpha/cpu_loop.c                             | 2 +-
>   linux-user/arm/cpu_loop.c                               | 2 +-
>   linux-user/hexagon/cpu_loop.c                           | 2 +-
>   linux-user/hppa/cpu_loop.c                              | 2 +-
>   linux-user/i386/cpu_loop.c                              | 2 +-
>   linux-user/loongarch64/cpu_loop.c                       | 2 +-
>   linux-user/m68k/cpu_loop.c                              | 2 +-
>   linux-user/main.c                                       | 2 +-
>   linux-user/microblaze/cpu_loop.c                        | 2 +-
>   linux-user/mips/cpu_loop.c                              | 2 +-
>   linux-user/openrisc/cpu_loop.c                          | 2 +-
>   linux-user/ppc/cpu_loop.c                               | 2 +-
>   linux-user/riscv/cpu_loop.c                             | 2 +-
>   linux-user/s390x/cpu_loop.c                             | 2 +-
>   linux-user/sh4/cpu_loop.c                               | 2 +-
>   linux-user/sparc/cpu_loop.c                             | 2 +-
>   linux-user/syscall.c                                    | 2 +-
>   linux-user/xtensa/cpu_loop.c                            | 2 +-
>   20 files changed, 21 insertions(+), 21 deletions(-)
>   rename linux-user/cpu_loop-common.h => include/user/cpu_loop.h (95%)
> 
> diff --git a/linux-user/cpu_loop-common.h b/include/user/cpu_loop.h
> similarity index 95%
> rename from linux-user/cpu_loop-common.h
> rename to include/user/cpu_loop.h
> index aca51f53238..8e2df232758 100644
> --- a/linux-user/cpu_loop-common.h
> +++ b/include/user/cpu_loop.h
> @@ -17,8 +17,8 @@
>    *  along with this program; if not, see <http://www.gnu.org/licenses/>.
>    */
>   
> -#ifndef CPU_LOOP_COMMON_H
> -#define CPU_LOOP_COMMON_H
> +#ifndef USER_CPU_LOOP_H
> +#define USER_CPU_LOOP_H
>   
>   #include "exec/log.h"
>   #include "special-errno.h"
> diff --git a/linux-user/aarch64/cpu_loop.c b/linux-user/aarch64/cpu_loop.c
> index 77f857a8216..c5d8a483a3f 100644
> --- a/linux-user/aarch64/cpu_loop.c
> +++ b/linux-user/aarch64/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   #include "qemu/guest-random.h"
>   #include "semihosting/common-semi.h"
> diff --git a/linux-user/alpha/cpu_loop.c b/linux-user/alpha/cpu_loop.c
> index b5403ed0e46..80ad536c5f2 100644
> --- a/linux-user/alpha/cpu_loop.c
> +++ b/linux-user/alpha/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   void cpu_loop(CPUAlphaState *env)
> diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
> index be1f11022a7..10d8561f9b9 100644
> --- a/linux-user/arm/cpu_loop.c
> +++ b/linux-user/arm/cpu_loop.c
> @@ -21,7 +21,7 @@
>   #include "qemu.h"
>   #include "user-internals.h"
>   #include "elf.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   #include "semihosting/common-semi.h"
>   #include "exec/page-protection.h"
> diff --git a/linux-user/hexagon/cpu_loop.c b/linux-user/hexagon/cpu_loop.c
> index a1794470113..de70f736367 100644
> --- a/linux-user/hexagon/cpu_loop.c
> +++ b/linux-user/hexagon/cpu_loop.c
> @@ -21,7 +21,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   #include "internal.h"
>   
> diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.c
> index 503a204460e..890e758cd1c 100644
> --- a/linux-user/hppa/cpu_loop.c
> +++ b/linux-user/hppa/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   static abi_ulong hppa_lws(CPUHPPAState *env)
> diff --git a/linux-user/i386/cpu_loop.c b/linux-user/i386/cpu_loop.c
> index e06aa23de4c..d96d5553faf 100644
> --- a/linux-user/i386/cpu_loop.c
> +++ b/linux-user/i386/cpu_loop.c
> @@ -21,7 +21,7 @@
>   #include "qemu.h"
>   #include "qemu/timer.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   #include "user-mmap.h"
>   
> diff --git a/linux-user/loongarch64/cpu_loop.c b/linux-user/loongarch64/cpu_loop.c
> index 935d5bcf2c8..0614d3de224 100644
> --- a/linux-user/loongarch64/cpu_loop.c
> +++ b/linux-user/loongarch64/cpu_loop.c
> @@ -8,7 +8,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   void cpu_loop(CPULoongArchState *env)
> diff --git a/linux-user/m68k/cpu_loop.c b/linux-user/m68k/cpu_loop.c
> index 69cdce95518..5da91b997ae 100644
> --- a/linux-user/m68k/cpu_loop.c
> +++ b/linux-user/m68k/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   void cpu_loop(CPUM68KState *env)
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 06037304cb1..b97634a32dd 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -50,7 +50,7 @@
>   #include "elf.h"
>   #include "trace/control.h"
>   #include "target_elf.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "crypto/init.h"
>   #include "fd-trans.h"
>   #include "signal-common.h"
> diff --git a/linux-user/microblaze/cpu_loop.c b/linux-user/microblaze/cpu_loop.c
> index ee4ba768691..87236c166f2 100644
> --- a/linux-user/microblaze/cpu_loop.c
> +++ b/linux-user/microblaze/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   void cpu_loop(CPUMBState *env)
> diff --git a/linux-user/mips/cpu_loop.c b/linux-user/mips/cpu_loop.c
> index 1331a9a2b8d..6405806eb02 100644
> --- a/linux-user/mips/cpu_loop.c
> +++ b/linux-user/mips/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   #include "elf.h"
>   #include "internal.h"
> diff --git a/linux-user/openrisc/cpu_loop.c b/linux-user/openrisc/cpu_loop.c
> index 1bf9542d16a..306b4f8eb43 100644
> --- a/linux-user/openrisc/cpu_loop.c
> +++ b/linux-user/openrisc/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   void cpu_loop(CPUOpenRISCState *env)
> diff --git a/linux-user/ppc/cpu_loop.c b/linux-user/ppc/cpu_loop.c
> index e168f1ce947..2a0efaffcd6 100644
> --- a/linux-user/ppc/cpu_loop.c
> +++ b/linux-user/ppc/cpu_loop.c
> @@ -21,7 +21,7 @@
>   #include "qemu.h"
>   #include "qemu/timer.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   static inline uint64_t cpu_ppc_get_tb(CPUPPCState *env)
> diff --git a/linux-user/riscv/cpu_loop.c b/linux-user/riscv/cpu_loop.c
> index a72bc76da3d..3ac8bbfec1f 100644
> --- a/linux-user/riscv/cpu_loop.c
> +++ b/linux-user/riscv/cpu_loop.c
> @@ -21,7 +21,7 @@
>   #include "qemu/error-report.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   #include "elf.h"
>   #include "semihosting/common-semi.h"
> diff --git a/linux-user/s390x/cpu_loop.c b/linux-user/s390x/cpu_loop.c
> index 42e4d24102e..c9124444ed2 100644
> --- a/linux-user/s390x/cpu_loop.c
> +++ b/linux-user/s390x/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   
> diff --git a/linux-user/sh4/cpu_loop.c b/linux-user/sh4/cpu_loop.c
> index 937d9fa265d..ee9eff3428a 100644
> --- a/linux-user/sh4/cpu_loop.c
> +++ b/linux-user/sh4/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   void cpu_loop(CPUSH4State *env)
> diff --git a/linux-user/sparc/cpu_loop.c b/linux-user/sparc/cpu_loop.c
> index 58a2464da9f..68f1e8ecd43 100644
> --- a/linux-user/sparc/cpu_loop.c
> +++ b/linux-user/sparc/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   #define SPARC64_STACK_BIAS 2047
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index c54b199b6d3..1b335688f12 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -143,7 +143,7 @@
>   #include "special-errno.h"
>   #include "qapi/error.h"
>   #include "fd-trans.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   
>   #ifndef CLONE_IO
>   #define CLONE_IO                0x80000000      /* Clone io context */
> diff --git a/linux-user/xtensa/cpu_loop.c b/linux-user/xtensa/cpu_loop.c
> index 7564e25a966..c0fcf743e70 100644
> --- a/linux-user/xtensa/cpu_loop.c
> +++ b/linux-user/xtensa/cpu_loop.c
> @@ -20,7 +20,7 @@
>   #include "qemu/osdep.h"
>   #include "qemu.h"
>   #include "user-internals.h"
> -#include "cpu_loop-common.h"
> +#include "user/cpu_loop.h"
>   #include "signal-common.h"
>   
>   static void xtensa_rfw(CPUXtensaState *env)

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
diff mbox series

Patch

diff --git a/linux-user/cpu_loop-common.h b/include/user/cpu_loop.h
similarity index 95%
rename from linux-user/cpu_loop-common.h
rename to include/user/cpu_loop.h
index aca51f53238..8e2df232758 100644
--- a/linux-user/cpu_loop-common.h
+++ b/include/user/cpu_loop.h
@@ -17,8 +17,8 @@ 
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef CPU_LOOP_COMMON_H
-#define CPU_LOOP_COMMON_H
+#ifndef USER_CPU_LOOP_H
+#define USER_CPU_LOOP_H
 
 #include "exec/log.h"
 #include "special-errno.h"
diff --git a/linux-user/aarch64/cpu_loop.c b/linux-user/aarch64/cpu_loop.c
index 77f857a8216..c5d8a483a3f 100644
--- a/linux-user/aarch64/cpu_loop.c
+++ b/linux-user/aarch64/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 #include "qemu/guest-random.h"
 #include "semihosting/common-semi.h"
diff --git a/linux-user/alpha/cpu_loop.c b/linux-user/alpha/cpu_loop.c
index b5403ed0e46..80ad536c5f2 100644
--- a/linux-user/alpha/cpu_loop.c
+++ b/linux-user/alpha/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 void cpu_loop(CPUAlphaState *env)
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
index be1f11022a7..10d8561f9b9 100644
--- a/linux-user/arm/cpu_loop.c
+++ b/linux-user/arm/cpu_loop.c
@@ -21,7 +21,7 @@ 
 #include "qemu.h"
 #include "user-internals.h"
 #include "elf.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 #include "semihosting/common-semi.h"
 #include "exec/page-protection.h"
diff --git a/linux-user/hexagon/cpu_loop.c b/linux-user/hexagon/cpu_loop.c
index a1794470113..de70f736367 100644
--- a/linux-user/hexagon/cpu_loop.c
+++ b/linux-user/hexagon/cpu_loop.c
@@ -21,7 +21,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 #include "internal.h"
 
diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.c
index 503a204460e..890e758cd1c 100644
--- a/linux-user/hppa/cpu_loop.c
+++ b/linux-user/hppa/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 static abi_ulong hppa_lws(CPUHPPAState *env)
diff --git a/linux-user/i386/cpu_loop.c b/linux-user/i386/cpu_loop.c
index e06aa23de4c..d96d5553faf 100644
--- a/linux-user/i386/cpu_loop.c
+++ b/linux-user/i386/cpu_loop.c
@@ -21,7 +21,7 @@ 
 #include "qemu.h"
 #include "qemu/timer.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 #include "user-mmap.h"
 
diff --git a/linux-user/loongarch64/cpu_loop.c b/linux-user/loongarch64/cpu_loop.c
index 935d5bcf2c8..0614d3de224 100644
--- a/linux-user/loongarch64/cpu_loop.c
+++ b/linux-user/loongarch64/cpu_loop.c
@@ -8,7 +8,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 void cpu_loop(CPULoongArchState *env)
diff --git a/linux-user/m68k/cpu_loop.c b/linux-user/m68k/cpu_loop.c
index 69cdce95518..5da91b997ae 100644
--- a/linux-user/m68k/cpu_loop.c
+++ b/linux-user/m68k/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 void cpu_loop(CPUM68KState *env)
diff --git a/linux-user/main.c b/linux-user/main.c
index 06037304cb1..b97634a32dd 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -50,7 +50,7 @@ 
 #include "elf.h"
 #include "trace/control.h"
 #include "target_elf.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "crypto/init.h"
 #include "fd-trans.h"
 #include "signal-common.h"
diff --git a/linux-user/microblaze/cpu_loop.c b/linux-user/microblaze/cpu_loop.c
index ee4ba768691..87236c166f2 100644
--- a/linux-user/microblaze/cpu_loop.c
+++ b/linux-user/microblaze/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 void cpu_loop(CPUMBState *env)
diff --git a/linux-user/mips/cpu_loop.c b/linux-user/mips/cpu_loop.c
index 1331a9a2b8d..6405806eb02 100644
--- a/linux-user/mips/cpu_loop.c
+++ b/linux-user/mips/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 #include "elf.h"
 #include "internal.h"
diff --git a/linux-user/openrisc/cpu_loop.c b/linux-user/openrisc/cpu_loop.c
index 1bf9542d16a..306b4f8eb43 100644
--- a/linux-user/openrisc/cpu_loop.c
+++ b/linux-user/openrisc/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 void cpu_loop(CPUOpenRISCState *env)
diff --git a/linux-user/ppc/cpu_loop.c b/linux-user/ppc/cpu_loop.c
index e168f1ce947..2a0efaffcd6 100644
--- a/linux-user/ppc/cpu_loop.c
+++ b/linux-user/ppc/cpu_loop.c
@@ -21,7 +21,7 @@ 
 #include "qemu.h"
 #include "qemu/timer.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 static inline uint64_t cpu_ppc_get_tb(CPUPPCState *env)
diff --git a/linux-user/riscv/cpu_loop.c b/linux-user/riscv/cpu_loop.c
index a72bc76da3d..3ac8bbfec1f 100644
--- a/linux-user/riscv/cpu_loop.c
+++ b/linux-user/riscv/cpu_loop.c
@@ -21,7 +21,7 @@ 
 #include "qemu/error-report.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 #include "elf.h"
 #include "semihosting/common-semi.h"
diff --git a/linux-user/s390x/cpu_loop.c b/linux-user/s390x/cpu_loop.c
index 42e4d24102e..c9124444ed2 100644
--- a/linux-user/s390x/cpu_loop.c
+++ b/linux-user/s390x/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 
diff --git a/linux-user/sh4/cpu_loop.c b/linux-user/sh4/cpu_loop.c
index 937d9fa265d..ee9eff3428a 100644
--- a/linux-user/sh4/cpu_loop.c
+++ b/linux-user/sh4/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 void cpu_loop(CPUSH4State *env)
diff --git a/linux-user/sparc/cpu_loop.c b/linux-user/sparc/cpu_loop.c
index 58a2464da9f..68f1e8ecd43 100644
--- a/linux-user/sparc/cpu_loop.c
+++ b/linux-user/sparc/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 #define SPARC64_STACK_BIAS 2047
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c54b199b6d3..1b335688f12 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -143,7 +143,7 @@ 
 #include "special-errno.h"
 #include "qapi/error.h"
 #include "fd-trans.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 
 #ifndef CLONE_IO
 #define CLONE_IO                0x80000000      /* Clone io context */
diff --git a/linux-user/xtensa/cpu_loop.c b/linux-user/xtensa/cpu_loop.c
index 7564e25a966..c0fcf743e70 100644
--- a/linux-user/xtensa/cpu_loop.c
+++ b/linux-user/xtensa/cpu_loop.c
@@ -20,7 +20,7 @@ 
 #include "qemu/osdep.h"
 #include "qemu.h"
 #include "user-internals.h"
-#include "cpu_loop-common.h"
+#include "user/cpu_loop.h"
 #include "signal-common.h"
 
 static void xtensa_rfw(CPUXtensaState *env)