1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Added recognition of "cradle" machine as requested in bug 174257.

This commit is contained in:
John Cortell 2007-02-15 12:02:01 +00:00
parent cb85bd81a9
commit 8f495e9c41

View file

@ -136,6 +136,7 @@ public class Elf {
public final static int EM_IQ2000 = 0xFEBA; public final static int EM_IQ2000 = 0xFEBA;
public static final int EM_XILINX_MICROBLAZE = 0xbaab; public static final int EM_XILINX_MICROBLAZE = 0xbaab;
public static final int EM_SDMA = 0xcafe; public static final int EM_SDMA = 0xcafe;
public static final int EM_CRADLE = 0x4d55;
public byte e_ident[] = new byte[EI_NDENT]; public byte e_ident[] = new byte[EI_NDENT];
public int e_type; /* file type (Elf32_Half) */ public int e_type; /* file type (Elf32_Half) */
@ -856,6 +857,9 @@ public class Elf {
case Elf.ELFhdr.EM_SDMA: case Elf.ELFhdr.EM_SDMA:
attrib.cpu = "sdma"; //$NON-NLS-1$ attrib.cpu = "sdma"; //$NON-NLS-1$
break; break;
case Elf.ELFhdr.EM_CRADLE:
attrib.cpu = "cradle"; //$NON-NLS-1$
break;
case Elf.ELFhdr.EM_NONE : case Elf.ELFhdr.EM_NONE :
default : default :
attrib.cpu = "none"; //$NON-NLS-1$ attrib.cpu = "none"; //$NON-NLS-1$