From: Richard Henderson Date: Mon, 28 Jul 2025 19:49:39 +0000 (-1000) Subject: linux-user: Move target_cpu_copy_regs decl to qemu.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8329660b2e103ac2bbbf9ae933c0c742d44864e;p=thirdparty%2Fqemu.git linux-user: Move target_cpu_copy_regs decl to qemu.h The function is not used by bsd-user, so placement within include/user/cpu_loop.h is not ideal. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- diff --git a/include/user/cpu_loop.h b/include/user/cpu_loop.h index ad8a1d711f0..346e37ede8b 100644 --- a/include/user/cpu_loop.h +++ b/include/user/cpu_loop.h @@ -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 diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 4d6fad28c63..0c3cfe93a14 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -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 */