#include <elf.h>
#include <asm/ptrace.h>
-/* These are in <asm/cputable.h> in current kernels. */
-#define PPC_FEATURE_HAS_VSX 0x00000080
-#define PPC_FEATURE_HAS_ALTIVEC 0x10000000
-#define PPC_FEATURE_HAS_SPE 0x00800000
-#define PPC_FEATURE_CELL 0x00010000
-#define PPC_FEATURE_HAS_DFP 0x00000400
+#include "nat/ppc-linux.h"
static unsigned long ppc_hwcap;
#define ppc_num_regs 73
-/* This sometimes isn't defined. */
-#ifndef PT_ORIG_R3
-#define PT_ORIG_R3 34
-#endif
-#ifndef PT_TRAP
-#define PT_TRAP 40
-#endif
-
#ifdef __powerpc64__
/* We use a constant for FPSCR instead of PT_FPSCR, because
many shipped PPC64 kernels had the wrong value in ptrace.h. */
ppc_collect_ptrace_register (regcache, i, (char *) buf + ppc_regmap[i]);
}
-#ifndef PTRACE_GETVSXREGS
-#define PTRACE_GETVSXREGS 27
-#define PTRACE_SETVSXREGS 28
-#endif
-
#define SIZEOF_VSXREGS 32*8
static void
supply_register (regcache, base + i, ®set[i * 8]);
}
-#ifndef PTRACE_GETVRREGS
-#define PTRACE_GETVRREGS 18
-#define PTRACE_SETVRREGS 19
-#endif
-
#define SIZEOF_VRREGS 33*16+4
static void
supply_register_by_name (regcache, "vrsave", ®set[33 * 16]);
}
-#ifndef PTRACE_GETEVRREGS
-#define PTRACE_GETEVRREGS 20
-#define PTRACE_SETEVRREGS 21
-#endif
-
struct gdb_evrregset_t
{
unsigned long evr[32];