18#include "gdbsupport/common-defs.h"
33ppc64_host_hwcap (
unsigned long *valp)
36 *valp = getauxval (AT_HWCAP);
38 unsigned long data[2];
39 FILE *f = fopen (
"/proc/self/auxv",
"r");
44 while (fread (data,
sizeof (data), 1, f) > 0)
46 if (data[0] == AT_HWCAP)
58ppc64_64bit_inferior_p (
long msr)
60 unsigned long ppc_host_hwcap = 0;
63 ppc64_host_hwcap (&ppc_host_hwcap);
71 return msr & 0x80000000;
89 msr = (long)
ptrace (PTRACE_PEEKUSER, tid, PT_MSR * 8, 0);
90 if (errno == 0 && ppc64_64bit_inferior_p (msr))
#define ptrace(request, pid, addr, data)
int ppc_linux_target_wordsize(int tid)
#define PPC_FEATURE_BOOKE