Sync ELF File Header e_machine definitions into type definitions
Values and Names pulled from http://www.sco.com/developers/gabi/latest/ch4.eheader.html
This commit is contained in:
parent
ce65abaecc
commit
2c428df23c
444
src/types.rs
444
src/types.rs
@ -195,84 +195,196 @@ impl fmt::Display for Type {
|
||||
/// Represents the ELF file machine architecture
|
||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
||||
pub struct Machine(pub u16);
|
||||
pub const EM_NONE : Machine = Machine(0);
|
||||
pub const EM_M32 : Machine = Machine(1);
|
||||
pub const EM_SPARC : Machine = Machine(2);
|
||||
pub const EM_386 : Machine = Machine(3);
|
||||
pub const EM_68K : Machine = Machine(4);
|
||||
pub const EM_88K : Machine = Machine(5);
|
||||
pub const EM_860 : Machine = Machine(7);
|
||||
pub const EM_MIPS : Machine = Machine(8);
|
||||
pub const EM_S370 : Machine = Machine(9);
|
||||
pub const EM_MIPS_RS3_LE : Machine = Machine(10);
|
||||
pub const EM_PARISC : Machine = Machine(15);
|
||||
pub const EM_VPP500 : Machine = Machine(17);
|
||||
pub const EM_SPARC32PLUS : Machine = Machine(18);
|
||||
pub const EM_960 : Machine = Machine(19);
|
||||
pub const EM_PPC : Machine = Machine(20);
|
||||
pub const EM_PPC64 : Machine = Machine(21);
|
||||
pub const EM_S390 : Machine = Machine(22);
|
||||
pub const EM_V800 : Machine = Machine(36);
|
||||
pub const EM_FR20 : Machine = Machine(37);
|
||||
pub const EM_RH32 : Machine = Machine(38);
|
||||
pub const EM_RCE : Machine = Machine(39);
|
||||
pub const EM_ARM : Machine = Machine(40);
|
||||
pub const EM_FAKE_ALPHA : Machine = Machine(41);
|
||||
pub const EM_SH : Machine = Machine(42);
|
||||
pub const EM_SPARCV9 : Machine = Machine(43);
|
||||
pub const EM_TRICORE : Machine = Machine(44);
|
||||
pub const EM_ARC : Machine = Machine(45);
|
||||
pub const EM_H8_300 : Machine = Machine(46);
|
||||
pub const EM_H8_300H : Machine = Machine(47);
|
||||
pub const EM_H8S : Machine = Machine(48);
|
||||
pub const EM_H8_500 : Machine = Machine(49);
|
||||
pub const EM_IA_64 : Machine = Machine(50);
|
||||
pub const EM_MIPS_X : Machine = Machine(51);
|
||||
pub const EM_COLDFIRE : Machine = Machine(52);
|
||||
pub const EM_68HC12 : Machine = Machine(53);
|
||||
pub const EM_MMA : Machine = Machine(54);
|
||||
pub const EM_PCP : Machine = Machine(55);
|
||||
pub const EM_NCPU : Machine = Machine(56);
|
||||
pub const EM_NDR1 : Machine = Machine(57);
|
||||
pub const EM_STARCORE : Machine = Machine(58);
|
||||
pub const EM_ME16 : Machine = Machine(59);
|
||||
pub const EM_ST100 : Machine = Machine(60);
|
||||
pub const EM_TINYJ : Machine = Machine(61);
|
||||
pub const EM_X86_64 : Machine = Machine(62);
|
||||
pub const EM_PDSP : Machine = Machine(63);
|
||||
pub const EM_FX66 : Machine = Machine(66);
|
||||
pub const EM_ST9PLUS : Machine = Machine(67);
|
||||
pub const EM_ST7 : Machine = Machine(68);
|
||||
pub const EM_68HC16 : Machine = Machine(69);
|
||||
pub const EM_68HC11 : Machine = Machine(70);
|
||||
pub const EM_68HC08 : Machine = Machine(71);
|
||||
pub const EM_68HC05 : Machine = Machine(72);
|
||||
pub const EM_SVX : Machine = Machine(73);
|
||||
pub const EM_ST19 : Machine = Machine(74);
|
||||
pub const EM_VAX : Machine = Machine(75);
|
||||
pub const EM_CRIS : Machine = Machine(76);
|
||||
pub const EM_JAVELIN : Machine = Machine(77);
|
||||
pub const EM_FIREPATH : Machine = Machine(78);
|
||||
pub const EM_ZSP : Machine = Machine(79);
|
||||
pub const EM_MMIX : Machine = Machine(80);
|
||||
pub const EM_HUANY : Machine = Machine(81);
|
||||
pub const EM_PRISM : Machine = Machine(82);
|
||||
pub const EM_AVR : Machine = Machine(83);
|
||||
pub const EM_FR30 : Machine = Machine(84);
|
||||
pub const EM_D10V : Machine = Machine(85);
|
||||
pub const EM_D30V : Machine = Machine(86);
|
||||
pub const EM_V850 : Machine = Machine(87);
|
||||
pub const EM_M32R : Machine = Machine(88);
|
||||
pub const EM_MN10300 : Machine = Machine(89);
|
||||
pub const EM_MN10200 : Machine = Machine(90);
|
||||
pub const EM_PJ : Machine = Machine(91);
|
||||
pub const EM_OPENRISC : Machine = Machine(92);
|
||||
pub const EM_ARC_A5 : Machine = Machine(93);
|
||||
pub const EM_XTENSA : Machine = Machine(94);
|
||||
pub const EM_AARCH64 : Machine = Machine(183);
|
||||
pub const EM_TILEPRO : Machine = Machine(188);
|
||||
pub const EM_MICROBLAZE : Machine = Machine(189);
|
||||
pub const EM_TILEGX : Machine = Machine(191);
|
||||
pub const EM_NONE: Machine = Machine(0); // No machine
|
||||
pub const EM_M32: Machine = Machine(1); // AT&T WE 32100
|
||||
pub const EM_SPARC: Machine = Machine(2); // SPARC
|
||||
pub const EM_386: Machine = Machine(3); // Intel 80386
|
||||
pub const EM_68K: Machine = Machine(4); // Motorola 68000
|
||||
pub const EM_88K: Machine = Machine(5); // Motorola 88000
|
||||
pub const EM_IAMCU: Machine = Machine(6); // Intel MCU
|
||||
pub const EM_860: Machine = Machine(7); // Intel 80860
|
||||
pub const EM_MIPS: Machine = Machine(8); // MIPS I Architecture
|
||||
pub const EM_S370: Machine = Machine(9); // IBM System/370 Processor
|
||||
pub const EM_MIPS_RS3_LE: Machine = Machine(10); // MIPS RS3000 Little-endian
|
||||
// 11-14 Reserved for future use
|
||||
pub const EM_PARISC: Machine = Machine(15); // Hewlett-Packard PA-RISC
|
||||
// 16 Reserved for future use
|
||||
pub const EM_VPP500: Machine = Machine(17); // Fujitsu VPP500
|
||||
pub const EM_SPARC32PLUS: Machine = Machine(18); // Enhanced instruction set SPARC
|
||||
pub const EM_960: Machine = Machine(19); // Intel 80960
|
||||
pub const EM_PPC: Machine = Machine(20); // PowerPC
|
||||
pub const EM_PPC64: Machine = Machine(21); // 64-bit PowerPC
|
||||
pub const EM_S390: Machine = Machine(22); // IBM System/390 Processor
|
||||
pub const EM_SPU: Machine = Machine(23); // IBM SPU/SPC
|
||||
// 24-35 Reserved for future use
|
||||
pub const EM_V800: Machine = Machine(36); // NEC V800
|
||||
pub const EM_FR20: Machine = Machine(37); // Fujitsu FR20
|
||||
pub const EM_RH32: Machine = Machine(38); // TRW RH-32
|
||||
pub const EM_RCE: Machine = Machine(39); // Motorola RCE
|
||||
pub const EM_ARM: Machine = Machine(40); // ARM 32-bit architecture (AARCH32)
|
||||
pub const EM_ALPHA: Machine = Machine(41); // Digital Alpha
|
||||
pub const EM_SH: Machine = Machine(42); // Hitachi SH
|
||||
pub const EM_SPARCV9: Machine = Machine(43); // SPARC Version 9
|
||||
pub const EM_TRICORE: Machine = Machine(44); // Siemens TriCore embedded processor
|
||||
pub const EM_ARC: Machine = Machine(45); // Argonaut RISC Core, Argonaut Technologies Inc.
|
||||
pub const EM_H8_300: Machine = Machine(46); // Hitachi H8/300
|
||||
pub const EM_H8_300H: Machine = Machine(47); // Hitachi H8/300H
|
||||
pub const EM_H8S: Machine = Machine(48); // Hitachi H8S
|
||||
pub const EM_H8_500: Machine = Machine(49); // Hitachi H8/500
|
||||
pub const EM_IA_64: Machine = Machine(50); // Intel IA-64 processor architecture
|
||||
pub const EM_MIPS_X: Machine = Machine(51); // Stanford MIPS-X
|
||||
pub const EM_COLDFIRE: Machine = Machine(52); // Motorola ColdFire
|
||||
pub const EM_68HC12: Machine = Machine(53); // Motorola M68HC12
|
||||
pub const EM_MMA: Machine = Machine(54); // Fujitsu MMA Multimedia Accelerator
|
||||
pub const EM_PCP: Machine = Machine(55); // Siemens PCP
|
||||
pub const EM_NCPU: Machine = Machine(56); // Sony nCPU embedded RISC processor
|
||||
pub const EM_NDR1: Machine = Machine(57); // Denso NDR1 microprocessor
|
||||
pub const EM_STARCORE: Machine = Machine(58); // Motorola Star*Core processor
|
||||
pub const EM_ME16: Machine = Machine(59); // Toyota ME16 processor
|
||||
pub const EM_ST100: Machine = Machine(60); // STMicroelectronics ST100 processor
|
||||
pub const EM_TINYJ: Machine = Machine(61); // Advanced Logic Corp. TinyJ embedded processor family
|
||||
pub const EM_X86_64: Machine = Machine(62); // AMD x86-64 architecture
|
||||
pub const EM_PDSP: Machine = Machine(63); // Sony DSP Processor
|
||||
pub const EM_PDP10: Machine = Machine(64); // Digital Equipment Corp. PDP-10
|
||||
pub const EM_PDP11: Machine = Machine(65); // Digital Equipment Corp. PDP-11
|
||||
pub const EM_FX66: Machine = Machine(66); // Siemens FX66 microcontroller
|
||||
pub const EM_ST9PLUS: Machine = Machine(67); // STMicroelectronics ST9+ 8/16 bit microcontroller
|
||||
pub const EM_ST7: Machine = Machine(68); // STMicroelectronics ST7 8-bit microcontroller
|
||||
pub const EM_68HC16: Machine = Machine(69); // Motorola MC68HC16 Microcontroller
|
||||
pub const EM_68HC11: Machine = Machine(70); // Motorola MC68HC11 Microcontroller
|
||||
pub const EM_68HC08: Machine = Machine(71); // Motorola MC68HC08 Microcontroller
|
||||
pub const EM_68HC05: Machine = Machine(72); // Motorola MC68HC05 Microcontroller
|
||||
pub const EM_SVX: Machine = Machine(73); // Silicon Graphics SVx
|
||||
pub const EM_ST19: Machine = Machine(74); // STMicroelectronics ST19 8-bit microcontroller
|
||||
pub const EM_VAX: Machine = Machine(75); // Digital VAX
|
||||
pub const EM_CRIS: Machine = Machine(76); // Axis Communications 32-bit embedded processor
|
||||
pub const EM_JAVELIN: Machine = Machine(77); // Infineon Technologies 32-bit embedded processor
|
||||
pub const EM_FIREPATH: Machine = Machine(78); // Element 14 64-bit DSP Processor
|
||||
pub const EM_ZSP: Machine = Machine(79); // LSI Logic 16-bit DSP Processor
|
||||
pub const EM_MMIX: Machine = Machine(80); // Donald Knuth's educational 64-bit processor
|
||||
pub const EM_HUANY: Machine = Machine(81); // Harvard University machine-independent object files
|
||||
pub const EM_PRISM: Machine = Machine(82); // SiTera Prism
|
||||
pub const EM_AVR: Machine = Machine(83); // Atmel AVR 8-bit microcontroller
|
||||
pub const EM_FR30: Machine = Machine(84); // Fujitsu FR30
|
||||
pub const EM_D10V: Machine = Machine(85); // Mitsubishi D10V
|
||||
pub const EM_D30V: Machine = Machine(86); // Mitsubishi D30V
|
||||
pub const EM_V850: Machine = Machine(87); // NEC v850
|
||||
pub const EM_M32R: Machine = Machine(88); // Mitsubishi M32R
|
||||
pub const EM_MN10300: Machine = Machine(89); // Matsushita MN10300
|
||||
pub const EM_MN10200: Machine = Machine(90); // Matsushita MN10200
|
||||
pub const EM_PJ: Machine = Machine(91); // picoJava
|
||||
pub const EM_OPENRISC: Machine = Machine(92); // OpenRISC 32-bit embedded processor
|
||||
pub const EM_ARC_COMPACT: Machine = Machine(93); // ARC International ARCompact processor (old spelling/synonym: EM_ARC_A5)
|
||||
pub const EM_XTENSA: Machine = Machine(94); // Tensilica Xtensa Architecture
|
||||
pub const EM_VIDEOCORE: Machine = Machine(95); // Alphamosaic VideoCore processor
|
||||
pub const EM_TMM_GPP: Machine = Machine(96); // Thompson Multimedia General Purpose Processor
|
||||
pub const EM_NS32K: Machine = Machine(97); // National Semiconductor 32000 series
|
||||
pub const EM_TPC: Machine = Machine(98); // Tenor Network TPC processor
|
||||
pub const EM_SNP1K: Machine = Machine(99); // Trebia SNP 1000 processor
|
||||
pub const EM_ST200: Machine = Machine(100); // STMicroelectronics (www.st.com) ST200 microcontroller
|
||||
pub const EM_IP2K: Machine = Machine(101); // Ubicom IP2xxx microcontroller family
|
||||
pub const EM_MAX: Machine = Machine(102); // MAX Processor
|
||||
pub const EM_CR: Machine = Machine(103); // National Semiconductor CompactRISC microprocessor
|
||||
pub const EM_F2MC16: Machine = Machine(104); // Fujitsu F2MC16
|
||||
pub const EM_MSP430: Machine = Machine(105); // Texas Instruments embedded microcontroller msp430
|
||||
pub const EM_BLACKFIN: Machine = Machine(106); // Analog Devices Blackfin (DSP) processor
|
||||
pub const EM_SE_C33: Machine = Machine(107); // S1C33 Family of Seiko Epson processors
|
||||
pub const EM_SEP: Machine = Machine(108); // Sharp embedded microprocessor
|
||||
pub const EM_ARCA: Machine = Machine(109); // Arca RISC Microprocessor
|
||||
pub const EM_UNICORE: Machine = Machine(110); // Microprocessor series from PKU-Unity Ltd. and MPRC of Peking University
|
||||
pub const EM_EXCESS: Machine = Machine(111); // eXcess: 16/32/64-bit configurable embedded CPU
|
||||
pub const EM_DXP: Machine = Machine(112); // Icera Semiconductor Inc. Deep Execution Processor
|
||||
pub const EM_ALTERA_NIOS2: Machine = Machine(113); // Altera Nios II soft-core processor
|
||||
pub const EM_CRX: Machine = Machine(114); // National Semiconductor CompactRISC CRX microprocessor
|
||||
pub const EM_XGATE: Machine = Machine(115); // Motorola XGATE embedded processor
|
||||
pub const EM_C166: Machine = Machine(116); // Infineon C16x/XC16x processor
|
||||
pub const EM_M16C: Machine = Machine(117); // Renesas M16C series microprocessors
|
||||
pub const EM_DSPIC30F: Machine = Machine(118); // Microchip Technology dsPIC30F Digital Signal Controller
|
||||
pub const EM_CE: Machine = Machine(119); // Freescale Communication Engine RISC core
|
||||
pub const EM_M32C: Machine = Machine(120); // Renesas M32C series microprocessors
|
||||
// 121-130 Reserved for future use
|
||||
pub const EM_TSK3000: Machine = Machine(131); // Altium TSK3000 core
|
||||
pub const EM_RS08: Machine = Machine(132); // Freescale RS08 embedded processor
|
||||
pub const EM_SHARC: Machine = Machine(133); // Analog Devices SHARC family of 32-bit DSP processors
|
||||
pub const EM_ECOG2: Machine = Machine(134); // Cyan Technology eCOG2 microprocessor
|
||||
pub const EM_SCORE7: Machine = Machine(135); // Sunplus S+core7 RISC processor
|
||||
pub const EM_DSP24: Machine = Machine(136); // New Japan Radio (NJR) 24-bit DSP Processor
|
||||
pub const EM_VIDEOCORE3: Machine = Machine(137); // Broadcom VideoCore III processor
|
||||
pub const EM_LATTICEMICO32: Machine = Machine(138); // RISC processor for Lattice FPGA architecture
|
||||
pub const EM_SE_C17: Machine = Machine(139); // Seiko Epson C17 family
|
||||
pub const EM_TI_C6000: Machine = Machine(140); // The Texas Instruments TMS320C6000 DSP family
|
||||
pub const EM_TI_C2000: Machine = Machine(141); // The Texas Instruments TMS320C2000 DSP family
|
||||
pub const EM_TI_C5500: Machine = Machine(142); // The Texas Instruments TMS320C55x DSP family
|
||||
pub const EM_TI_ARP32: Machine = Machine(143); // Texas Instruments Application Specific RISC Processor, 32bit fetch
|
||||
pub const EM_TI_PRU: Machine = Machine(144); // Texas Instruments Programmable Realtime Unit
|
||||
// 145-159 Reserved for future use
|
||||
pub const EM_MMDSP_PLUS: Machine = Machine(160); // STMicroelectronics 64bit VLIW Data Signal Processor
|
||||
pub const EM_CYPRESS_M8C: Machine = Machine(161); // Cypress M8C microprocessor
|
||||
pub const EM_R32C: Machine = Machine(162); // Renesas R32C series microprocessors
|
||||
pub const EM_TRIMEDIA: Machine = Machine(163); // NXP Semiconductors TriMedia architecture family
|
||||
pub const EM_QDSP6: Machine = Machine(164); // QUALCOMM DSP6 Processor
|
||||
pub const EM_8051: Machine = Machine(165); // Intel 8051 and variants
|
||||
pub const EM_STXP7X: Machine = Machine(166); // STMicroelectronics STxP7x family of configurable and extensible RISC processors
|
||||
pub const EM_NDS32: Machine = Machine(167); // Andes Technology compact code size embedded RISC processor family
|
||||
pub const EM_ECOG1: Machine = Machine(168); // Cyan Technology eCOG1X family
|
||||
pub const EM_ECOG1X: Machine = Machine(168); // Cyan Technology eCOG1X family
|
||||
pub const EM_MAXQ30: Machine = Machine(169); // Dallas Semiconductor MAXQ30 Core Micro-controllers
|
||||
pub const EM_XIMO16: Machine = Machine(170); // New Japan Radio (NJR) 16-bit DSP Processor
|
||||
pub const EM_MANIK: Machine = Machine(171); // M2000 Reconfigurable RISC Microprocessor
|
||||
pub const EM_CRAYNV2: Machine = Machine(172); // Cray Inc. NV2 vector architecture
|
||||
pub const EM_RX: Machine = Machine(173); // Renesas RX family
|
||||
pub const EM_METAG: Machine = Machine(174); // Imagination Technologies META processor architecture
|
||||
pub const EM_MCST_ELBRUS: Machine = Machine(175); // MCST Elbrus general purpose hardware architecture
|
||||
pub const EM_ECOG16: Machine = Machine(176); // Cyan Technology eCOG16 family
|
||||
pub const EM_CR16: Machine = Machine(177); // National Semiconductor CompactRISC CR16 16-bit microprocessor
|
||||
pub const EM_ETPU: Machine = Machine(178); // Freescale Extended Time Processing Unit
|
||||
pub const EM_SLE9X: Machine = Machine(179); // Infineon Technologies SLE9X core
|
||||
pub const EM_L10M: Machine = Machine(180); // Intel L10M
|
||||
pub const EM_K10M: Machine = Machine(181); // Intel K10M
|
||||
// 182 Reserved for future Intel use
|
||||
pub const EM_AARCH64: Machine = Machine(183); // ARM 64-bit architecture (AARCH64)
|
||||
// 184 Reserved for future ARM use
|
||||
pub const EM_AVR32: Machine = Machine(185); // Atmel Corporation 32-bit microprocessor family
|
||||
pub const EM_STM8: Machine = Machine(186); // STMicroeletronics STM8 8-bit microcontroller
|
||||
pub const EM_TILE64: Machine = Machine(187); // Tilera TILE64 multicore architecture family
|
||||
pub const EM_TILEPRO: Machine = Machine(188); // Tilera TILEPro multicore architecture family
|
||||
pub const EM_MICROBLAZE: Machine = Machine(189); // Xilinx MicroBlaze 32-bit RISC soft processor core
|
||||
pub const EM_CUDA: Machine = Machine(190); // NVIDIA CUDA architecture
|
||||
pub const EM_TILEGX: Machine = Machine(191); // Tilera TILE-Gx multicore architecture family
|
||||
pub const EM_CLOUDSHIELD: Machine = Machine(192); // CloudShield architecture family
|
||||
pub const EM_COREA_1ST: Machine = Machine(193); // KIPO-KAIST Core-A 1st generation processor family
|
||||
pub const EM_COREA_2ND: Machine = Machine(194); // KIPO-KAIST Core-A 2nd generation processor family
|
||||
pub const EM_ARC_COMPACT2: Machine = Machine(195); // Synopsys ARCompact V2
|
||||
pub const EM_OPEN8: Machine = Machine(196); // Open8 8-bit RISC soft processor core
|
||||
pub const EM_RL78: Machine = Machine(197); // Renesas RL78 family
|
||||
pub const EM_VIDEOCORE5: Machine = Machine(198); // Broadcom VideoCore V processor
|
||||
pub const EM_78KOR: Machine = Machine(199); // Renesas 78KOR family
|
||||
pub const EM_56800EX: Machine = Machine(200); // Freescale 56800EX Digital Signal Controller (DSC)
|
||||
pub const EM_BA1: Machine = Machine(201); // Beyond BA1 CPU architecture
|
||||
pub const EM_BA2: Machine = Machine(202); // Beyond BA2 CPU architecture
|
||||
pub const EM_XCORE: Machine = Machine(203); // XMOS xCORE processor family
|
||||
pub const EM_MCHP_PIC: Machine = Machine(204); // Microchip 8-bit PIC(r) family
|
||||
pub const EM_INTEL205: Machine = Machine(205); // Reserved by Intel
|
||||
pub const EM_INTEL206: Machine = Machine(206); // Reserved by Intel
|
||||
pub const EM_INTEL207: Machine = Machine(207); // Reserved by Intel
|
||||
pub const EM_INTEL208: Machine = Machine(208); // Reserved by Intel
|
||||
pub const EM_INTEL209: Machine = Machine(209); // Reserved by Intel
|
||||
pub const EM_KM32: Machine = Machine(210); // KM211 KM32 32-bit processor
|
||||
pub const EM_KMX32: Machine = Machine(211); // KM211 KMX32 32-bit processor
|
||||
pub const EM_KMX16: Machine = Machine(212); // KM211 KMX16 16-bit processor
|
||||
pub const EM_KMX8: Machine = Machine(213); // KM211 KMX8 8-bit processor
|
||||
pub const EM_KVARC: Machine = Machine(214); // KM211 KVARC processor
|
||||
pub const EM_CDP: Machine = Machine(215); // Paneve CDP architecture family
|
||||
pub const EM_COGE: Machine = Machine(216); // Cognitive Smart Memory Processor
|
||||
pub const EM_COOL: Machine = Machine(217); // Bluechip Systems CoolEngine
|
||||
pub const EM_NORC: Machine = Machine(218); // Nanoradio Optimized RISC
|
||||
pub const EM_CSR_KALIMBA: Machine = Machine(219); // CSR Kalimba architecture family
|
||||
pub const EM_Z80: Machine = Machine(220); // Zilog Z80
|
||||
pub const EM_VISIUM: Machine = Machine(221); // Controls and Data Services VISIUMcore processor
|
||||
pub const EM_FT32: Machine = Machine(222); // FTDI Chip FT32 high performance 32-bit RISC architecture
|
||||
pub const EM_MOXIE: Machine = Machine(223); // Moxie processor family
|
||||
pub const EM_AMDGPU: Machine = Machine(224); // AMD GPU architecture
|
||||
pub const EM_RISCV: Machine = Machine(243); // RISC-V
|
||||
|
||||
impl fmt::Debug for Machine {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
@ -285,58 +397,62 @@ impl fmt::Display for Machine {
|
||||
let str = match *self {
|
||||
EM_NONE => "No machine",
|
||||
EM_M32 => "AT&T WE 32100",
|
||||
EM_SPARC => "SUN SPARC",
|
||||
EM_SPARC => "SPARC",
|
||||
EM_386 => "Intel 80386",
|
||||
EM_68K => "Motorola m68k family",
|
||||
EM_88K => "Motorola m88k family",
|
||||
EM_68K => "Motorola 68000",
|
||||
EM_88K => "Motorola 88000",
|
||||
EM_IAMCU => "Intel MCU",
|
||||
EM_860 => "Intel 80860",
|
||||
EM_MIPS => "MIPS R3000 big-endian",
|
||||
EM_S370 => "IBM System/370",
|
||||
EM_MIPS_RS3_LE => "MIPS R3000 little-endian",
|
||||
EM_PARISC => "HPPA",
|
||||
EM_MIPS => "MIPS I Architecture",
|
||||
EM_S370 => "IBM System/370 Processor",
|
||||
EM_MIPS_RS3_LE => "MIPS RS3000 Little-endian",
|
||||
EM_PARISC => "Hewlett-Packard PA-RISC",
|
||||
EM_VPP500 => "Fujitsu VPP500",
|
||||
EM_SPARC32PLUS => "Sun's 'v8plus'",
|
||||
EM_SPARC32PLUS => "Enhanced instruction set SPARC",
|
||||
EM_960 => "Intel 80960",
|
||||
EM_PPC => "PowerPC",
|
||||
EM_PPC64 => "PowerPC 64-bit",
|
||||
EM_S390 => "IBM S390",
|
||||
EM_V800 => "NEC V800 series",
|
||||
EM_PPC64 => "64-bit PowerPC",
|
||||
EM_S390 => "IBM System/390 Processor",
|
||||
EM_SPU => "IBM SPU/SPC",
|
||||
EM_V800 => "NEC V800",
|
||||
EM_FR20 => "Fujitsu FR20",
|
||||
EM_RH32 => "TRW RH-32",
|
||||
EM_RCE => "Motorola RCE",
|
||||
EM_ARM => "ARM",
|
||||
EM_FAKE_ALPHA => "Digital Alpha",
|
||||
EM_ARM => "ARM 32-bit architecture (AARCH32)",
|
||||
EM_ALPHA => "Digital Alpha",
|
||||
EM_SH => "Hitachi SH",
|
||||
EM_SPARCV9 => "SPARC v9 64-bit",
|
||||
EM_TRICORE => "Siemens Tricore",
|
||||
EM_ARC => "Argonaut RISC Core",
|
||||
EM_SPARCV9 => "SPARC Version 9",
|
||||
EM_TRICORE => "Siemens TriCore embedded processor",
|
||||
EM_ARC => "Argonaut RISC Core, Argonaut Technologies Inc.",
|
||||
EM_H8_300 => "Hitachi H8/300",
|
||||
EM_H8_300H => "Hitachi H8/300H",
|
||||
EM_H8S => "Hitachi H8S",
|
||||
EM_H8_500 => "Hitachi H8/500",
|
||||
EM_IA_64 => "Intel Merced",
|
||||
EM_IA_64 => "Intel IA-64 processor architecture",
|
||||
EM_MIPS_X => "Stanford MIPS-X",
|
||||
EM_COLDFIRE => "Motorola Coldfire",
|
||||
EM_COLDFIRE => "Motorola ColdFire",
|
||||
EM_68HC12 => "Motorola M68HC12",
|
||||
EM_MMA => "Fujitsu MMA Multimedia Accelerato",
|
||||
EM_MMA => "Fujitsu MMA Multimedia Accelerator",
|
||||
EM_PCP => "Siemens PCP",
|
||||
EM_NCPU => "Sony nCPU embeeded RISC",
|
||||
EM_NCPU => "Sony nCPU embedded RISC processor",
|
||||
EM_NDR1 => "Denso NDR1 microprocessor",
|
||||
EM_STARCORE => "Motorola Start*Core processor",
|
||||
EM_STARCORE => "Motorola Star*Core processor",
|
||||
EM_ME16 => "Toyota ME16 processor",
|
||||
EM_ST100 => "STMicroelectronic ST100 processor",
|
||||
EM_TINYJ => "Advanced Logic Corp. Tinyj emb.fa",
|
||||
EM_ST100 => "STMicroelectronics ST100 processor",
|
||||
EM_TINYJ => "Advanced Logic Corp. TinyJ embedded processor family",
|
||||
EM_X86_64 => "AMD x86-64 architecture",
|
||||
EM_PDSP => "Sony DSP Processor",
|
||||
EM_PDP10 => "Digital Equipment Corp. PDP-10",
|
||||
EM_PDP11 => "Digital Equipment Corp. PDP-11",
|
||||
EM_FX66 => "Siemens FX66 microcontroller",
|
||||
EM_ST9PLUS => "STMicroelectronics ST9+ 8/16 mc",
|
||||
EM_ST7 => "STmicroelectronics ST7 8 bit mc",
|
||||
EM_68HC16 => "Motorola MC68HC16 microcontroller",
|
||||
EM_68HC11 => "Motorola MC68HC11 microcontroller",
|
||||
EM_68HC08 => "Motorola MC68HC08 microcontroller",
|
||||
EM_68HC05 => "Motorola MC68HC05 microcontroller",
|
||||
EM_ST9PLUS => "STMicroelectronics ST9+ 8/16 bit microcontroller",
|
||||
EM_ST7 => "STMicroelectronics ST7 8-bit microcontroller",
|
||||
EM_68HC16 => "Motorola MC68HC16 Microcontroller",
|
||||
EM_68HC11 => "Motorola MC68HC11 Microcontroller",
|
||||
EM_68HC08 => "Motorola MC68HC08 Microcontroller",
|
||||
EM_68HC05 => "Motorola MC68HC05 Microcontroller",
|
||||
EM_SVX => "Silicon Graphics SVx",
|
||||
EM_ST19 => "STMicroelectronics ST19 8 bit mc",
|
||||
EM_ST19 => "STMicroelectronics ST19 8-bit microcontroller",
|
||||
EM_VAX => "Digital VAX",
|
||||
EM_CRIS => "Axis Communications 32-bit embedded processor",
|
||||
EM_JAVELIN => "Infineon Technologies 32-bit embedded processor",
|
||||
@ -355,13 +471,113 @@ impl fmt::Display for Machine {
|
||||
EM_MN10200 => "Matsushita MN10200",
|
||||
EM_PJ => "picoJava",
|
||||
EM_OPENRISC => "OpenRISC 32-bit embedded processor",
|
||||
EM_ARC_A5 => "ARC Cores Tangent-A5",
|
||||
EM_ARC_COMPACT => "ARC International ARCompact processor (old spelling/synonym: EM_ARC_A5)",
|
||||
EM_XTENSA => "Tensilica Xtensa Architecture",
|
||||
EM_AARCH64 => "ARM AARCH64",
|
||||
EM_TILEPRO => "Tilera TILEPro",
|
||||
EM_MICROBLAZE => "Xilinx MicroBlaze",
|
||||
EM_TILEGX => "Tilera TILE-Gx",
|
||||
_ => "Unknown",
|
||||
EM_VIDEOCORE => "Alphamosaic VideoCore processor",
|
||||
EM_TMM_GPP => "Thompson Multimedia General Purpose Processor",
|
||||
EM_NS32K => "National Semiconductor 32000 series",
|
||||
EM_TPC => "Tenor Network TPC processor",
|
||||
EM_SNP1K => "Trebia SNP 1000 processor",
|
||||
EM_ST200 => "STMicroelectronics (www.st.com) ST200 microcontroller",
|
||||
EM_IP2K => "Ubicom IP2xxx microcontroller family",
|
||||
EM_MAX => "MAX Processor",
|
||||
EM_CR => "National Semiconductor CompactRISC microprocessor",
|
||||
EM_F2MC16 => "Fujitsu F2MC16",
|
||||
EM_MSP430 => "Texas Instruments embedded microcontroller msp430",
|
||||
EM_BLACKFIN => "Analog Devices Blackfin (DSP) processor",
|
||||
EM_SE_C33 => "S1C33 Family of Seiko Epson processors",
|
||||
EM_SEP => "Sharp embedded microprocessor",
|
||||
EM_ARCA => "Arca RISC Microprocessor",
|
||||
EM_UNICORE => "Microprocessor series from PKU-Unity Ltd. and MPRC of Peking University",
|
||||
EM_EXCESS => "eXcess: 16/32/64-bit configurable embedded CPU",
|
||||
EM_DXP => "Icera Semiconductor Inc. Deep Execution Processor",
|
||||
EM_ALTERA_NIOS2 => "Altera Nios II soft-core processor",
|
||||
EM_CRX => "National Semiconductor CompactRISC CRX microprocessor",
|
||||
EM_XGATE => "Motorola XGATE embedded processor",
|
||||
EM_C166 => "Infineon C16x/XC16x processor",
|
||||
EM_M16C => "Renesas M16C series microprocessors",
|
||||
EM_DSPIC30F => "Microchip Technology dsPIC30F Digital Signal Controller",
|
||||
EM_CE => "Freescale Communication Engine RISC core",
|
||||
EM_M32C => "Renesas M32C series microprocessors",
|
||||
EM_TSK3000 => "Altium TSK3000 core",
|
||||
EM_RS08 => "Freescale RS08 embedded processor",
|
||||
EM_SHARC => "Analog Devices SHARC family of 32-bit DSP processors",
|
||||
EM_ECOG2 => "Cyan Technology eCOG2 microprocessor",
|
||||
EM_SCORE7 => "Sunplus S+core7 RISC processor",
|
||||
EM_DSP24 => "New Japan Radio (NJR) 24-bit DSP Processor",
|
||||
EM_VIDEOCORE3 => "Broadcom VideoCore III processor",
|
||||
EM_LATTICEMICO32 => "RISC processor for Lattice FPGA architecture",
|
||||
EM_SE_C17 => "Seiko Epson C17 family",
|
||||
EM_TI_C6000 => "The Texas Instruments TMS320C6000 DSP family",
|
||||
EM_TI_C2000 => "The Texas Instruments TMS320C2000 DSP family",
|
||||
EM_TI_C5500 => "The Texas Instruments TMS320C55x DSP family",
|
||||
EM_TI_ARP32 => "Texas Instruments Application Specific RISC Processor, 32bit fetch",
|
||||
EM_TI_PRU => "Texas Instruments Programmable Realtime Unit",
|
||||
EM_MMDSP_PLUS => "STMicroelectronics 64bit VLIW Data Signal Processor",
|
||||
EM_CYPRESS_M8C => "Cypress M8C microprocessor",
|
||||
EM_R32C => "Renesas R32C series microprocessors",
|
||||
EM_TRIMEDIA => "NXP Semiconductors TriMedia architecture family",
|
||||
EM_QDSP6 => "QUALCOMM DSP6 Processor",
|
||||
EM_8051 => "Intel 8051 and variants",
|
||||
EM_STXP7X => "STMicroelectronics STxP7x family of configurable and extensible RISC processors",
|
||||
EM_NDS32 => "Andes Technology compact code size embedded RISC processor family",
|
||||
EM_ECOG1X => "Cyan Technology eCOG1X family",
|
||||
EM_MAXQ30 => "Dallas Semiconductor MAXQ30 Core Micro-controllers",
|
||||
EM_XIMO16 => "New Japan Radio (NJR) 16-bit DSP Processor",
|
||||
EM_MANIK => "M2000 Reconfigurable RISC Microprocessor",
|
||||
EM_CRAYNV2 => "Cray Inc. NV2 vector architecture",
|
||||
EM_RX => "Renesas RX family",
|
||||
EM_METAG => "Imagination Technologies META processor architecture",
|
||||
EM_MCST_ELBRUS => "MCST Elbrus general purpose hardware architecture",
|
||||
EM_ECOG16 => "Cyan Technology eCOG16 family",
|
||||
EM_CR16 => "National Semiconductor CompactRISC CR16 16-bit microprocessor",
|
||||
EM_ETPU => "Freescale Extended Time Processing Unit",
|
||||
EM_SLE9X => "Infineon Technologies SLE9X core",
|
||||
EM_L10M => "Intel L10M",
|
||||
EM_K10M => "Intel K10M",
|
||||
EM_AARCH64 => "ARM 64-bit architecture (AARCH64)",
|
||||
EM_AVR32 => "Atmel Corporation 32-bit microprocessor family",
|
||||
EM_STM8 => "STMicroeletronics STM8 8-bit microcontroller",
|
||||
EM_TILE64 => "Tilera TILE64 multicore architecture family",
|
||||
EM_TILEPRO => "Tilera TILEPro multicore architecture family",
|
||||
EM_MICROBLAZE => "Xilinx MicroBlaze 32-bit RISC soft processor core",
|
||||
EM_CUDA => "NVIDIA CUDA architecture",
|
||||
EM_TILEGX => "Tilera TILE-Gx multicore architecture family",
|
||||
EM_CLOUDSHIELD => "CloudShield architecture family",
|
||||
EM_COREA_1ST => "KIPO-KAIST Core-A 1st generation processor family",
|
||||
EM_COREA_2ND => "KIPO-KAIST Core-A 2nd generation processor family",
|
||||
EM_ARC_COMPACT2 => "Synopsys ARCompact V2",
|
||||
EM_OPEN8 => "Open8 8-bit RISC soft processor core",
|
||||
EM_RL78 => "Renesas RL78 family",
|
||||
EM_VIDEOCORE5 => "Broadcom VideoCore V processor",
|
||||
EM_78KOR => "Renesas 78KOR family",
|
||||
EM_56800EX => "Freescale 56800EX Digital Signal Controller (DSC)",
|
||||
EM_BA1 => "Beyond BA1 CPU architecture",
|
||||
EM_BA2 => "Beyond BA2 CPU architecture",
|
||||
EM_XCORE => "XMOS xCORE processor family",
|
||||
EM_MCHP_PIC => "Microchip 8-bit PIC(r) family",
|
||||
EM_INTEL205 => "Reserved by Intel",
|
||||
EM_INTEL206 => "Reserved by Intel",
|
||||
EM_INTEL207 => "Reserved by Intel",
|
||||
EM_INTEL208 => "Reserved by Intel",
|
||||
EM_INTEL209 => "Reserved by Intel",
|
||||
EM_KM32 => "KM211 KM32 32-bit processor",
|
||||
EM_KMX32 => "KM211 KMX32 32-bit processor",
|
||||
EM_KMX16 => "KM211 KMX16 16-bit processor",
|
||||
EM_KMX8 => "KM211 KMX8 8-bit processor",
|
||||
EM_KVARC => "KM211 KVARC processor",
|
||||
EM_CDP => "Paneve CDP architecture family",
|
||||
EM_COGE => "Cognitive Smart Memory Processor",
|
||||
EM_COOL => "Bluechip Systems CoolEngine",
|
||||
EM_NORC => "Nanoradio Optimized RISC",
|
||||
EM_CSR_KALIMBA => "CSR Kalimba architecture family",
|
||||
EM_Z80 => "Zilog Z80",
|
||||
EM_VISIUM => "Controls and Data Services VISIUMcore processor",
|
||||
EM_FT32 => "FTDI Chip FT32 high performance 32-bit RISC architecture",
|
||||
EM_MOXIE => "Moxie processor family",
|
||||
EM_AMDGPU => "AMD GPU architecture",
|
||||
EM_RISCV => "RISC-V",
|
||||
_ => "Unknown Machine",
|
||||
};
|
||||
write!(f, "{}", str)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user