blob: 711b4a337594a741c84ba8fc6220509cdf3df144 [file] [log] [blame]
Juan Cespedes5bfb0612002-03-31 20:01:28 +02001#define BREAKPOINT_VALUE { 0x7f, 0xe0, 0x00, 0x08 }
Juan Cespedesf1bfe202002-03-27 00:22:23 +01002#define BREAKPOINT_LENGTH 4
3#define DECR_PC_AFTER_BREAK 0
Juan Cespedesd914a202004-11-10 00:15:33 +01004
5#define LT_ELFCLASS ELFCLASS32
6#define LT_ELF_MACHINE EM_PPC
Petr Machatab3f8fef2006-11-30 14:45:07 +01007
Paul Gilliam76c61f12006-06-14 06:55:21 +02008#ifdef __powerpc64__ // Says 'ltrace' is 64 bits, says nothing about target.
Ian Wienand9a2ad352006-02-20 22:44:45 +01009#define LT_ELFCLASS2 ELFCLASS64
10#define LT_ELF_MACHINE2 EM_PPC64
Petr Machatab3f8fef2006-11-30 14:45:07 +010011#define ARCH_SUPPORTS_OPD
Petr Machata7003fee2006-07-18 13:06:26 +020012#endif
Ian Wienand9a2ad352006-02-20 22:44:45 +010013
Paul Gilliambe320772006-04-24 22:06:23 +020014#define PLT_REINITALISATION_BP "_start"
Ian Wienand9a2ad352006-02-20 22:44:45 +010015
Luis Machado55c5feb2008-03-12 15:56:01 +010016/* Start of arch-specific functions. */
17#define ARCH_HAVE_UMOVELONG
18
Paul Gilliam76c61f12006-06-14 06:55:21 +020019#define PPC_NOP { 0x60, 0x00, 0x00, 0x00 }
20#define PPC_NOP_LENGTH 4
21
22#if (PPC_NOP_LENGTH != BREAKPOINT_LENGTH)
23#error "Length of the breakpoint value not equal to the length of a nop instruction"
24#endif