qemu/linux-user/sparc/target_ptrace.h
Richard Henderson 8bb7873f28 linux-user/sparc: Create target_ptrace.h
Move target_pt_regs to target_ptrace.h.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2025-08-30 07:04:04 +10:00

25 lines
508 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef SPARC_TARGET_PTRACE_H
#define SPARC_TARGET_PTRACE_H
/* See arch/sparc/include/uapi/asm/ptrace.h. */
struct target_pt_regs {
#if defined(TARGET_SPARC64) && !defined(TARGET_ABI32)
abi_ulong u_regs[16];
abi_ulong tstate;
abi_ulong pc;
abi_ulong npc;
uint32_t y;
uint32_t magic;
#else
abi_ulong psr;
abi_ulong pc;
abi_ulong npc;
abi_ulong y;
abi_ulong u_regs[16];
#endif
};
#endif /* SPARC_TARGET_PTRACE_H */