On 22/4/25 21:27, Richard Henderson wrote:
> From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> Message-ID: <20250325045915.994760-3-pierrick.bouvier@linaro.org>
> ---
> include/exec/cpu-all.h | 2 --
> linux-user/qemu.h | 3 +++
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
> index 5c4379f0d0..2aaaf0548d 100644
> --- a/include/exec/cpu-all.h
> +++ b/include/exec/cpu-all.h
> @@ -31,8 +31,6 @@
> #endif
>
>
> -CPUArchState *cpu_copy(CPUArchState *env);
> -
> #include "cpu.h"
>
> /* Validate correct placement of CPUArchState. */
> diff --git a/linux-user/qemu.h b/linux-user/qemu.h
> index 5f00750151..948de8431a 100644
> --- a/linux-user/qemu.h
> +++ b/linux-user/qemu.h
> @@ -362,4 +362,7 @@ void *lock_user_string(abi_ulong guest_addr);
> #define unlock_user_struct(host_ptr, guest_addr, copy) \
> unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0)
>
> +/* Clone cpu state */
> +CPUArchState *cpu_copy(CPUArchState *env);
> +
> #endif /* QEMU_H */
I don't see any OS-specific code in cpu_copy() (and don't expect
to see any). Maybe "user/cpu_loop.h" is a better fit, as it also
declares target_cpu_copy_regs()?