linux-user/aarch64: Create target_ptrace.h
Move the target_pt_regs structure from target_syscall.h, and rename to target_user_pt_regs, to match what's in ptrace.h. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
31d0ef2c85
commit
7ee71b02fb
2 changed files with 14 additions and 7 deletions
14
linux-user/aarch64/target_ptrace.h
Normal file
14
linux-user/aarch64/target_ptrace.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#ifndef AARCH64_TARGET_PTRACE_H
|
||||
#define AARCH64_TARGET_PTRACE_H
|
||||
|
||||
/* See arch/arm64/include/uapi/asm/ptrace.h. */
|
||||
struct target_user_pt_regs {
|
||||
uint64_t regs[31];
|
||||
uint64_t sp;
|
||||
uint64_t pc;
|
||||
uint64_t pstate;
|
||||
};
|
||||
|
||||
#endif /* AARCH64_TARGET_PTRACE_H */
|
||||
|
|
@ -1,13 +1,6 @@
|
|||
#ifndef AARCH64_TARGET_SYSCALL_H
|
||||
#define AARCH64_TARGET_SYSCALL_H
|
||||
|
||||
struct target_pt_regs {
|
||||
uint64_t regs[31];
|
||||
uint64_t sp;
|
||||
uint64_t pc;
|
||||
uint64_t pstate;
|
||||
};
|
||||
|
||||
#if TARGET_BIG_ENDIAN
|
||||
#define UNAME_MACHINE "aarch64_be"
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue