1 /* Copyright (C) 1995-2018 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 #include <asm/ptrace.h>
22 #include <asm/cputable.h>
24 /* This sometimes isn't defined. */
32 /* The PPC_FEATURE_* defines should be provided by <asm/cputable.h>.
33 If they aren't, we can provide them ourselves (their values are fixed
34 because they are part of the kernel ABI). They are used in the AT_HWCAP
36 #ifndef PPC_FEATURE_CELL
37 #define PPC_FEATURE_CELL 0x00010000
39 #ifndef PPC_FEATURE_BOOKE
40 #define PPC_FEATURE_BOOKE 0x00008000
42 #ifndef PPC_FEATURE_HAS_DFP
43 #define PPC_FEATURE_HAS_DFP 0x00000400 /* Decimal Floating Point. */
45 #ifndef PPC_FEATURE_HAS_VSX
46 #define PPC_FEATURE_HAS_VSX 0x00000080
48 #ifndef PPC_FEATURE_HAS_ALTIVEC
49 #define PPC_FEATURE_HAS_ALTIVEC 0x10000000
51 #ifndef PPC_FEATURE_HAS_SPE
52 #define PPC_FEATURE_HAS_SPE 0x00800000
54 #ifndef PPC_FEATURE2_DSCR
55 #define PPC_FEATURE2_DSCR 0x20000000
58 /* Glibc's headers don't define PTRACE_GETVRREGS so we cannot use a
59 configure time check. Some older glibc's (for instance 2.2.1)
60 don't have a specific powerpc version of ptrace.h, and fall back on
61 a generic one. In such cases, sys/ptrace.h defines
62 PTRACE_GETFPXREGS and PTRACE_SETFPXREGS to the same numbers that
63 ppc kernel's asm/ptrace.h defines PTRACE_GETVRREGS and
64 PTRACE_SETVRREGS to be. This also makes a configury check pretty
67 /* These definitions should really come from the glibc header files,
68 but Glibc doesn't know about the vrregs yet. */
69 #ifndef PTRACE_GETVRREGS
70 #define PTRACE_GETVRREGS 18
71 #define PTRACE_SETVRREGS 19
74 /* PTRACE requests for POWER7 VSX registers. */
75 #ifndef PTRACE_GETVSXREGS
76 #define PTRACE_GETVSXREGS 27
77 #define PTRACE_SETVSXREGS 28
80 /* Similarly for the ptrace requests for getting / setting the SPE
81 registers (ev0 -- ev31, acc, and spefscr). See the description of
82 gdb_evrregset_t for details. */
83 #ifndef PTRACE_GETEVRREGS
84 #define PTRACE_GETEVRREGS 20
85 #define PTRACE_SETEVRREGS 21
88 /* Program Priority Register. */
90 #define NT_PPC_PPR 0x104
93 /* Data Stream Control Register. */
95 #define NT_PPC_DSCR 0x105
98 /* Return the wordsize of the target, either 4 or 8 bytes. */
99 int ppc_linux_target_wordsize (int tid
);
This page took 0.031945 seconds and 4 git commands to generate.