]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: Move target_cpu_copy_regs decl to qemu.h
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Jul 2025 19:49:39 +0000 (09:49 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Aug 2025 20:39:25 +0000 (06:39 +1000)
The function is not used by bsd-user, so placement
within include/user/cpu_loop.h is not ideal.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/user/cpu_loop.h
linux-user/qemu.h

index ad8a1d711f0bde7c7688c78054ac04abe6b30a4e..346e37ede8bea93357e5ed48709cc685224cbf45 100644 (file)
@@ -81,8 +81,4 @@ void target_exception_dump(CPUArchState *env, const char *fmt, int code);
 #define EXCP_DUMP(env, fmt, code) \
     target_exception_dump(env, fmt, code)
 
-typedef struct target_pt_regs target_pt_regs;
-
-void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs);
-
 #endif
index 4d6fad28c63c20ce4cefaa3e6b19d524dbce4686..0c3cfe93a14b543569c3ef6781a598f6f3185270 100644 (file)
@@ -359,4 +359,7 @@ void *lock_user_string(abi_ulong guest_addr);
 /* Clone cpu state */
 CPUArchState *cpu_copy(CPUArchState *env);
 
+typedef struct target_pt_regs target_pt_regs;
+void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs);
+
 #endif /* QEMU_H */