ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com> * configure.in: Add cases for Renesas m32c. * configure: Regenerated. bfd/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> Add support for m32c-*-elf (Renesas m32c and m16c). * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo. (ALL_MACHINES_CFILES): Add cpu-m32c.c. (BFD32_BACKENDS): Add elf32-m32c.lo. (BFD32_BACKENDS_CFILES): Add elf32-m32c.c. (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'. * Makefile.in: Regenerated. * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New arch and mach codes. (bfd_m32c_arch): New arch info object. (bfd_archures_list): List bfd_m32c_arch. * bfd-in2.h: Regenerated. * config.bfd: Add case for the m32c. * configure.in: Add case for the m32c. * configure: Regenerated. * cpu-m32c.c, elf32-m32c.c: New files. * libbfd.h: Regenerated. * targets.c (bfd_elf32_m32c_vec): Declare. (_bfd_target_vector): List bfd_elf32_m32c_vec. binutils/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> * readelf.c: #include "elf/m32c.h" (guess_is_rela, dump_relocations, get_machine_name): Add cases for EM_M32C. * Makefile.am (readelf.o): Update dependencies. * Makefile.in: Regenerated. cpu/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> * m32c.cpu, m32c.opc: Machine description for the Renesas M32C. gas/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> Add support for the Renesas M32C. * Makefile.am (CPU_TYPES): List m32c. (TARGET_CPU_CFILES): List config/tc-m32c.c. (TARGET_CPU_HFILES): List config/tc-m32c.h. * configure.in: Add case for m32c. * configure.tgt: Add cases for m32c and m32c-*-elf. * configure: Regenerated. * config/tc-m32c.c, config/tc-m32c.h: New files. * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi. * doc/Makefile.in: Regenerated. * doc/all.texi: Set M32C. * doc/as.texinfo: Add text for the M32C-specific options and line comment characters, and refer to c-m32c.texi. * doc/c-m32c.texi: New file. include/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> * dis-asm.h (print_insn_m32c): New declaration. include/elf/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> Add support for Renesas M32C and M16C. * common.h (EM_M32C): New machine number. * m32c.h: New file. ld/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> Add support for the Renesas M32C and M16C. * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o. (eelf32m32c.c): New target. * Makefile.in: Regenerated. * configure.tgt: Add case for m32c-*-elf. * emulparams/elf32m32c.sh: New file. opcodes/ChangeLog: 2005-07-14 Jim Blandy <jimb@redhat.com> Add support for the Renesas M32C and M16C. * m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c, m32c-opc.c: New. * m32c-desc.h, m32c-opc.h: New. * Makefile.am (HFILES): List m32c-desc.h and m32c-opc.h. (CFILES): List m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c, m32c-opc.c. (ALL_MACHINES): List m32c-asm.lo, m32c-desc.lo, m32c-dis.lo, m32c-ibld.lo, m32c-opc.lo. (CLEANFILES): List stamp-m32c. (M32C_DEPS): List stamp-m32c, if CGEN_MAINT. (CGEN_CPUS): Add m32c. (m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c, m32c-opc.c) (m32c-desc.h, m32c-opc.h): Depend on M32C_DEPS. (m32c_opc_h): New variable. (stamp-m32c, m32c-asm.lo, m32c-desc.lo, m32c-dis.lo, m32c-ibld.lo) (m32c-opc.lo): New rules. * Makefile.in: Regenerated. * configure.in: Add case for bfd_m32c_arch. * configure: Regenerated. * disassemble.c (ARCH_m32c): New. [ARCH_m32c]: #include "m32c-desc.h". (disassembler) [ARCH_m32c]: Add case for bfd_arch_m32c. (disassemble_init_for_target) [ARCH_m32c]: Same. * cgen-ops.h, cgen-types.h: New files. * Makefile.am (HFILES): List them. * Makefile.in: Regenerated.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | ||||
| 2005-07-14  Jim Blandy  <jimb@redhat.com> | ||||
|  | ||||
| 	* dis-asm.h (print_insn_m32c): New declaration. | ||||
|  | ||||
| 2005-07-12  Ben Elliston  <bje@au.ibm.com> | ||||
|  | ||||
| 	* xregex2.h (regexec): Qualify this prototype with __extension__ | ||||
|   | ||||
| @@ -264,6 +264,7 @@ extern int print_insn_sh64		(bfd_vma, disassemble_info *); | ||||
| extern int print_insn_sh64x_media	(bfd_vma, disassemble_info *); | ||||
| extern int print_insn_frv		(bfd_vma, disassemble_info *); | ||||
| extern int print_insn_iq2000		(bfd_vma, disassemble_info *); | ||||
| extern int print_insn_m32c	(bfd_vma, disassemble_info *); | ||||
|  | ||||
| extern disassembler_ftype arc_get_disassembler (void *); | ||||
| extern disassembler_ftype cris_get_disassembler (bfd *); | ||||
|   | ||||
| @@ -1,3 +1,9 @@ | ||||
| 2005-07-14  Jim Blandy  <jimb@redhat.com> | ||||
|  | ||||
| 	Add support for Renesas M32C and M16C. | ||||
| 	* common.h (EM_M32C): New machine number. | ||||
| 	* m32c.h: New file. | ||||
| 	 | ||||
| 2005-06-17  Jan Beulich  <jbeulich@novell.com> | ||||
|  | ||||
| 	* x86-64.h (elf_x86_64_reloc_type): Adjust comment for | ||||
|   | ||||
| @@ -211,6 +211,9 @@ | ||||
| /* (Deprecated) Temporary number for the OpenRISC processor.  */ | ||||
| #define EM_OR32		0x8472 | ||||
|  | ||||
| /* Renesas M32C and M16C.  */ | ||||
| #define EM_M32C			0xFEB0 | ||||
|  | ||||
| /* Cygnus M32R ELF backend.  Written in the absence of an ABI.  */ | ||||
| #define EM_CYGNUS_M32R	0x9041 | ||||
|  | ||||
|   | ||||
							
								
								
									
										49
									
								
								include/elf/m32c.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								include/elf/m32c.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,49 @@ | ||||
| /* M32C ELF support for BFD. | ||||
|    Copyright (C) 2004 Free Software Foundation, Inc. | ||||
|  | ||||
| This file is part of BFD, the Binary File Descriptor library. | ||||
|  | ||||
| This program is free software; you can redistribute it and/or modify | ||||
| it under the terms of the GNU General Public License as published by | ||||
| the Free Software Foundation; either version 2 of the License, or | ||||
| (at your option) any later version. | ||||
|  | ||||
| This program is distributed in the hope that it will be useful, | ||||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
| GNU General Public License for more details. | ||||
|  | ||||
| You should have received a copy of the GNU General Public License | ||||
| along with this program; if not, write to the Free Software Foundation, Inc., | ||||
| 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */ | ||||
|  | ||||
| #ifndef _ELF_M32C_H | ||||
| #define _ELF_M32C_H | ||||
|  | ||||
| #include "elf/reloc-macros.h" | ||||
|  | ||||
|   /* Relocations.  */ | ||||
|   START_RELOC_NUMBERS (elf_m32c_reloc_type) | ||||
|      RELOC_NUMBER (R_M32C_NONE, 0) | ||||
|      RELOC_NUMBER (R_M32C_16, 1) | ||||
|      RELOC_NUMBER (R_M32C_24, 2) | ||||
|      RELOC_NUMBER (R_M32C_32, 3) | ||||
|      RELOC_NUMBER (R_M32C_8_PCREL, 4) | ||||
|      RELOC_NUMBER (R_M32C_16_PCREL, 5) | ||||
|      END_RELOC_NUMBERS (R_M32C_max) | ||||
|  | ||||
| #define EF_M32C_CPU_M16C	0x00000075      /* default */ | ||||
| #define EF_M32C_CPU_M32C        0x00000078      /* m32c */ | ||||
| #define EF_M32C_CPU_MASK	0x0000007F	/* specific cpu bits */ | ||||
| #define EF_M32C_ALL_FLAGS	(EF_M32C_CPU_MASK) | ||||
|  | ||||
| /* Define the data & instruction memory discriminator.  In a linked | ||||
|    executable, an symbol should be deemed to point to an instruction | ||||
|    if ((address & M16C_INSN_MASK) == M16C_INSN_VALUE), and similarly | ||||
|    for the data space.  See also `ld/emulparams/elf32m32c.sh'.  */ | ||||
| #define M32C_DATA_MASK   0xffc00000 | ||||
| #define M32C_DATA_VALUE  0x00000000 | ||||
| #define M32C_INSN_MASK   0xffc00000 | ||||
| #define M32C_INSN_VALUE  0x00400000 | ||||
|  | ||||
| #endif /* _ELF_M32C_H */ | ||||
							
								
								
									
										63
									
								
								include/gdb/sim-m32c.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								include/gdb/sim-m32c.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,63 @@ | ||||
| /* This file defines the interface between the m32c simulator and gdb. | ||||
|    Copyright (C) 2005 Free Software Foundation, Inc. | ||||
|  | ||||
| This file is part of GDB. | ||||
|  | ||||
| This program is free software; you can redistribute it and/or modify | ||||
| it under the terms of the GNU General Public License as published by | ||||
| the Free Software Foundation; either version 2 of the License, or | ||||
| (at your option) any later version. | ||||
|  | ||||
| This program is distributed in the hope that it will be useful, | ||||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
| GNU General Public License for more details. | ||||
|  | ||||
| You should have received a copy of the GNU General Public License | ||||
| along with this program; if not, write to the Free Software | ||||
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */ | ||||
|  | ||||
| #ifndef SIM_M32C_H | ||||
| #define SIM_M32C_H | ||||
|  | ||||
| enum m32c_sim_reg { | ||||
|   m32c_sim_reg_r0_bank0, | ||||
|   m32c_sim_reg_r1_bank0, | ||||
|   m32c_sim_reg_r2_bank0, | ||||
|   m32c_sim_reg_r3_bank0, | ||||
|   m32c_sim_reg_a0_bank0, | ||||
|   m32c_sim_reg_a1_bank0, | ||||
|   m32c_sim_reg_fb_bank0, | ||||
|   m32c_sim_reg_sb_bank0, | ||||
|   m32c_sim_reg_r0_bank1, | ||||
|   m32c_sim_reg_r1_bank1, | ||||
|   m32c_sim_reg_r2_bank1, | ||||
|   m32c_sim_reg_r3_bank1, | ||||
|   m32c_sim_reg_a0_bank1, | ||||
|   m32c_sim_reg_a1_bank1, | ||||
|   m32c_sim_reg_fb_bank1, | ||||
|   m32c_sim_reg_sb_bank1, | ||||
|   m32c_sim_reg_usp, | ||||
|   m32c_sim_reg_isp, | ||||
|   m32c_sim_reg_pc, | ||||
|   m32c_sim_reg_intb, | ||||
|   m32c_sim_reg_flg, | ||||
|   m32c_sim_reg_svf, | ||||
|   m32c_sim_reg_svp, | ||||
|   m32c_sim_reg_vct, | ||||
|   m32c_sim_reg_dmd0, | ||||
|   m32c_sim_reg_dmd1, | ||||
|   m32c_sim_reg_dct0, | ||||
|   m32c_sim_reg_dct1, | ||||
|   m32c_sim_reg_drc0, | ||||
|   m32c_sim_reg_drc1, | ||||
|   m32c_sim_reg_dma0, | ||||
|   m32c_sim_reg_dma1, | ||||
|   m32c_sim_reg_dsa0, | ||||
|   m32c_sim_reg_dsa1, | ||||
|   m32c_sim_reg_dra0, | ||||
|   m32c_sim_reg_dra1, | ||||
|   m32c_sim_reg_num_regs | ||||
| }; | ||||
|  | ||||
| #endif /* SIM_M32C_H */ | ||||
		Reference in New Issue
	
	Block a user