Permalink
Browse files

target-rl78: Add ELF machine identifier

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
  • Loading branch information...
1 parent e9ba1d7 commit be1de838cd211b5425a55ecbc36aa0d1a5633a2a @afaerber committed Nov 12, 2011
Showing with 4 additions and 0 deletions.
  1. +2 −0 include/elf.h
  2. +2 −0 target-78k0/cpu.h
View
@@ -131,6 +131,8 @@ typedef int64_t Elf64_Sxword;
#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 */
#define DT_NULL 0
#define DT_NEEDED 1
View
@@ -51,6 +51,8 @@ typedef struct RL78CPUClass {
void (*parent_reset)(CPUState *cpu);
} RL78CPUClass;
+#define ELF_MACHINE EM_RL78
+
#define NB_MMU_MODES 1
typedef struct CPU78K0State {

0 comments on commit be1de83

Please sign in to comment.