diff options
author | Nick Clifton <nickc@redhat.com> | 2003-10-21 13:28:59 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-10-21 13:28:59 +0000 |
commit | 3e602632663c14cea25d8b12d1306eccbc1c9be3 (patch) | |
tree | b81f6d5469007aef81bccd5c8a1e2ff151de70fe /bfd | |
parent | 8b7d96c1c421f4cb319e3a49e943f862171387d6 (diff) | |
download | gdb-3e602632663c14cea25d8b12d1306eccbc1c9be3.zip gdb-3e602632663c14cea25d8b12d1306eccbc1c9be3.tar.gz gdb-3e602632663c14cea25d8b12d1306eccbc1c9be3.tar.bz2 |
Add ColfFire v4 support
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 12 | ||||
-rw-r--r-- | bfd/archures.c | 5 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 1 | ||||
-rw-r--r-- | bfd/cpu-m68k.c | 53 | ||||
-rw-r--r-- | bfd/ieee.c | 1 |
5 files changed, 46 insertions, 26 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6e2e095..7ae6b66 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,15 @@ +2003-10-21 Thorsten Brehm <brehm@gmx.net> + + * archures.c (bfd_default_scan): Add support for mcf528x. + * ieee.c (ieee_write_processor): Likewise. + +2003-10-21 Peter Barada <pbarada@mail.wm.sps.mot.com> + Bernardo Innocenti <bernie@develer.com> + + * archures.c: Add MCF528x (MCFv4) support. + * bfd/cpu-m68k.c (arch_info_struct): Likewise. + * bfd-in2.h: Regenerate. + 2003-10-20 Andrew Cagney <cagney@redhat.com> * targets.c: Replace "struct sec" with "struct bfd_section" diff --git a/bfd/archures.c b/bfd/archures.c index 271b031..b71434e 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -84,6 +84,7 @@ DESCRIPTION .#define bfd_mach_mcf5206e 10 .#define bfd_mach_mcf5307 11 .#define bfd_mach_mcf5407 12 +.#define bfd_mach_mcf528x 13 . bfd_arch_vax, {* DEC Vax *} . bfd_arch_i960, {* Intel 960 *} . {* The order of the following is important. @@ -959,6 +960,10 @@ bfd_default_scan (const bfd_arch_info_type *info, const char *string) arch = bfd_arch_m68k; number = bfd_mach_mcf5407; break; + case 5282: + arch = bfd_arch_m68k; + number = bfd_mach_mcf528x; + break; case 32000: arch = bfd_arch_we32k; diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index e7d25cb..b58d6ca 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1519,6 +1519,7 @@ enum bfd_architecture #define bfd_mach_mcf5206e 10 #define bfd_mach_mcf5307 11 #define bfd_mach_mcf5407 12 +#define bfd_mach_mcf528x 13 bfd_arch_vax, /* DEC Vax */ bfd_arch_i960, /* Intel 960 */ /* The order of the following is important. diff --git a/bfd/cpu-m68k.c b/bfd/cpu-m68k.c index 1648340..71c7029 100644 --- a/bfd/cpu-m68k.c +++ b/bfd/cpu-m68k.c @@ -1,23 +1,23 @@ /* BFD library support routines for architectures. - Copyright 1990, 1991, 1992, 1993, 1994, 1997, 1998, 2000, 2001, 2002 - Free Software Foundation, Inc. + Copyright 1990, 1991, 1992, 1993, 1994, 1997, 1998, 2000, 2001, 2002, + 2003 Free Software Foundation, Inc. Hacked by Steve Chamberlain of Cygnus Support. -This file is part of BFD, the Binary File Descriptor library. + 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 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. + 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. */ + 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. */ #include "bfd.h" #include "sysdep.h" @@ -28,18 +28,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ static const bfd_arch_info_type arch_info_struct[] = { - N(bfd_mach_m68000, "m68k:68000", FALSE, &arch_info_struct[1]), - N(bfd_mach_m68008, "m68k:68008", FALSE, &arch_info_struct[2]), - N(bfd_mach_m68010, "m68k:68010", FALSE, &arch_info_struct[3]), - N(bfd_mach_m68020, "m68k:68020", FALSE, &arch_info_struct[4]), - N(bfd_mach_m68030, "m68k:68030", FALSE, &arch_info_struct[5]), - N(bfd_mach_m68040, "m68k:68040", FALSE, &arch_info_struct[6]), - N(bfd_mach_cpu32, "m68k:cpu32", FALSE, &arch_info_struct[7]), - N(bfd_mach_mcf5200,"m68k:5200", FALSE, &arch_info_struct[8]), - N(bfd_mach_mcf5206e,"m68k:5206e",FALSE, &arch_info_struct[9]), - N(bfd_mach_mcf5307, "m68k:5307", FALSE, &arch_info_struct[10]), - N(bfd_mach_mcf5407, "m68k:5407", FALSE, &arch_info_struct[11]), - N(bfd_mach_m68060, "m68k:68060", FALSE, 0), + N(bfd_mach_m68000, "m68k:68000", FALSE, &arch_info_struct[1]), + N(bfd_mach_m68008, "m68k:68008", FALSE, &arch_info_struct[2]), + N(bfd_mach_m68010, "m68k:68010", FALSE, &arch_info_struct[3]), + N(bfd_mach_m68020, "m68k:68020", FALSE, &arch_info_struct[4]), + N(bfd_mach_m68030, "m68k:68030", FALSE, &arch_info_struct[5]), + N(bfd_mach_m68040, "m68k:68040", FALSE, &arch_info_struct[6]), + N(bfd_mach_cpu32, "m68k:cpu32", FALSE, &arch_info_struct[7]), + N(bfd_mach_mcf5200, "m68k:5200", FALSE, &arch_info_struct[8]), + N(bfd_mach_mcf5206e,"m68k:5206e", FALSE, &arch_info_struct[9]), + N(bfd_mach_mcf5307, "m68k:5307", FALSE, &arch_info_struct[10]), + N(bfd_mach_mcf5407, "m68k:5407", FALSE, &arch_info_struct[11]), + N(bfd_mach_m68060, "m68k:68060", FALSE, &arch_info_struct[12]), + N(bfd_mach_mcf528x, "m68k:528x", FALSE, 0), }; const bfd_arch_info_type bfd_m68k_arch = @@ -3704,6 +3704,7 @@ ieee_write_processor (abfd) case bfd_mach_mcf5206e:id = "5206e"; break; case bfd_mach_mcf5307:id = "5307"; break; case bfd_mach_mcf5407:id = "5407"; break; + case bfd_mach_mcf528x:id = "5282"; break; } if (! ieee_write_id (abfd, id)) |