Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

target-rl78: Add ELF machine identifier

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
  • Loading branch information...
commit be1de838cd211b5425a55ecbc36aa0d1a5633a2a 1 parent e9ba1d7
@afaerber authored
Showing with 4 additions and 0 deletions.
  1. +2 −0  include/elf.h
  2. +2 −0  target-78k0/cpu.h
View
2  include/elf.h
@@ -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
2  target-78k0/cpu.h
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.