| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #ifndef PPC_TARGET_PTRACE_H |
| 4 | #define PPC_TARGET_PTRACE_H |
| 5 | |
| 6 | struct target_pt_regs { |
| 7 | abi_ulong gpr[32]; |
| 8 | abi_ulong nip; |
| 9 | abi_ulong msr; |
| 10 | abi_ulong orig_gpr3; /* Used for restarting system calls */ |
| 11 | abi_ulong ctr; |
| 12 | abi_ulong link; |
| 13 | abi_ulong xer; |
| 14 | abi_ulong ccr; |
| 15 | #if defined(TARGET_PPC64) |
| 16 | abi_ulong softe; |
| 17 | #else |
| 18 | abi_ulong mq; /* 601 only (not used at present) */ |
| 19 | #endif |
| 20 | abi_ulong trap; /* Reason for being here */ |
| 21 | abi_ulong dar; /* Fault registers */ |
| 22 | abi_ulong dsisr; |
| 23 | abi_ulong result; /* Result of a system call */ |
| 24 | }; |
| 25 | |
| 26 | #endif /* PPC_TARGET_PTRACE_H */ |