mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:56:38 +00:00
linux-user: Move cpu_copy() to user-internals.h
We only use cpu_copy() inside linux-user, so we don't need to have the prototype in qemu.h available to code outside linux-user; move it to user-internals.h. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Helge Deller <deller@gmx.de> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
9ecb5063c6
commit
07e701716b
@@ -368,7 +368,4 @@ 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 */
|
||||
|
||||
@@ -209,6 +209,9 @@ static inline void begin_parallel_context(CPUState *cs)
|
||||
*/
|
||||
void init_main_thread(CPUState *cs, struct image_info *info);
|
||||
|
||||
/* Clone cpu state */
|
||||
CPUArchState *cpu_copy(CPUArchState *env);
|
||||
|
||||
/*
|
||||
* Include target-specific struct and function definitions;
|
||||
* they may need access to the target-independent structures
|
||||
|
||||
Reference in New Issue
Block a user