| 1 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify |
| 3 | * it under the terms of the GNU General Public License version 2 as |
| 4 | * published by the Free Software Foundation, or (at your option) any |
| 5 | * later version. See the COPYING file in the top-level directory. |
| 6 | */ |
| 7 | |
| 8 | #ifndef XTENSA_TARGET_ELF_H |
| 9 | #define XTENSA_TARGET_ELF_H |
| 10 | |
| 11 | #include "target_ptrace.h" |
| 12 | |
| 13 | #define ELF_CLASS ELFCLASS32 |
| 14 | #define ELF_MACHINE EM_XTENSA |
| 15 | |
| 16 | #define HAVE_ELF_CORE_DUMP 1 |
| 17 | |
| 18 | /* |
| 19 | * See linux kernel: arch/xtensa/include/asm/elf.h, where elf_gregset_t |
| 20 | * is mapped to struct user_pt_regs via typedef and sizeof. |
| 21 | */ |
| 22 | typedef struct target_elf_gregset_t { |
| 23 | struct target_user_pt_regs pt; |
| 24 | } target_elf_gregset_t; |
| 25 | |
| 26 | #endif |