| 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 MICROBLAZE_TARGET_ELF_H |
| 9 | #define MICROBLAZE_TARGET_ELF_H |
| 10 | |
| 11 | #include "target_ptrace.h" |
| 12 | |
| 13 | #define ELF_CLASS ELFCLASS32 |
| 14 | #define ELF_MACHINE EM_MICROBLAZE |
| 15 | |
| 16 | #define elf_check_machine(x) ((x) == EM_MICROBLAZE || (x) == EM_MICROBLAZE_OLD) |
| 17 | |
| 18 | #define HAVE_ELF_CORE_DUMP 1 |
| 19 | |
| 20 | /* |
| 21 | * See linux kernel: arch/microblaze/include/asm/elf.h, where |
| 22 | * elf_gregset_t is mapped to struct pt_regs via sizeof. |
| 23 | */ |
| 24 | typedef struct target_elf_gregset_t { |
| 25 | struct target_pt_regs pt; |
| 26 | } target_elf_gregset_t; |
| 27 | |
| 28 | #endif |