diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-28 09:49:39 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | d8329660b2e103ac2bbbf9ae933c0c742d44864e (patch) | |
| tree | 86e8ab2364fff27a1c8d986b505128f09b168a33 | |
| parent | f8498e084eaa7f78d455d5f2f7a308a4d0d5f39b (diff) | |
| download | focaccia-qemu-d8329660b2e103ac2bbbf9ae933c0c742d44864e.tar.gz focaccia-qemu-d8329660b2e103ac2bbbf9ae933c0c742d44864e.zip | |
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 <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
| -rw-r--r-- | include/user/cpu_loop.h | 4 | ||||
| -rw-r--r-- | linux-user/qemu.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/user/cpu_loop.h b/include/user/cpu_loop.h index ad8a1d711f..346e37ede8 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 4d6fad28c6..0c3cfe93a1 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 */ |