Skip to content

Commit

Permalink
target-rl78: Add ELF machine identifier
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
  • Loading branch information
afaerber committed Aug 25, 2013
1 parent e9ba1d7 commit be1de83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/elf.h
Expand Up @@ -131,6 +131,8 @@ typedef int64_t Elf64_Sxword;


#define EM_AARCH64 183 #define EM_AARCH64 183


#define EM_RL78 197 /* Renesas RL78 */

/* This is the info that is needed to parse the dynamic section of the file */ /* This is the info that is needed to parse the dynamic section of the file */
#define DT_NULL 0 #define DT_NULL 0
#define DT_NEEDED 1 #define DT_NEEDED 1
Expand Down
2 changes: 2 additions & 0 deletions target-78k0/cpu.h
Expand Up @@ -51,6 +51,8 @@ typedef struct RL78CPUClass {
void (*parent_reset)(CPUState *cpu); void (*parent_reset)(CPUState *cpu);
} RL78CPUClass; } RL78CPUClass;


#define ELF_MACHINE EM_RL78

#define NB_MMU_MODES 1 #define NB_MMU_MODES 1


typedef struct CPU78K0State { typedef struct CPU78K0State {
Expand Down

0 comments on commit be1de83

Please sign in to comment.