Changeset 609 for branches/GNU/src/binutils/bfd/cpu-sh.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/bfd/cpu-sh.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 /* BFD library support routines for the Hitachi-SH architecture. 2 Copyright 1993, 1994, 1997, 1998, 2000 Free Software Foundation, Inc. 1 /* BFD library support routines for the Renesas / SuperH SH architecture. 2 Copyright 1993, 1994, 1997, 1998, 2000, 2001, 2002, 2003 3 Free Software Foundation, Inc. 3 4 Hacked by Steve Chamberlain of Cygnus Support. 4 5 5 This file is part of BFD, the Binary File Descriptor library.6 This file is part of BFD, the Binary File Descriptor library. 6 7 7 This program is free software; you can redistribute it and/or modify8 it under the terms of the GNU General Public License as published by9 the Free Software Foundation; either version 2 of the License, or10 (at your option) any later version.8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2 of the License, or 11 (at your option) any later version. 11 12 12 This program is distributed in the hope that it will be useful,13 but WITHOUT ANY WARRANTY; without even the implied warranty of14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15 GNU General Public License for more details.13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 16 17 17 You should have received a copy of the GNU General Public License18 along with this program; if not, write to the Free Software19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 20 21 21 22 #include "bfd.h" … … 23 24 #include "libbfd.h" 24 25 25 static boolean26 scan_mach (info, string)27 const struct bfd_arch_info *info;28 const char *string;29 {30 if (strcasecmp (info->printable_name, string) == 0)31 return true;32 return false;33 }34 35 26 #if 0 36 27 /* This routine is provided two arch_infos and returns whether 37 they'd be compatible */28 they'd be compatible. */ 38 29 39 30 static const bfd_arch_info_type * … … 43 34 { 44 35 if (a->arch != b->arch || a->mach != b->mach) 45 return NULL;36 return NULL; 46 37 return a; 47 38 } … … 50 41 #define SH_NEXT &arch_info_struct[0] 51 42 #define SH2_NEXT &arch_info_struct[1] 52 #define SH_DSP_NEXT &arch_info_struct[2] 53 #define SH3_NEXT &arch_info_struct[3] 54 #define SH3_DSP_NEXT &arch_info_struct[4] 55 #define SH3E_NEXT &arch_info_struct[5] 56 #define SH4_NEXT NULL 43 #define SH2E_NEXT &arch_info_struct[2] 44 #define SH_DSP_NEXT &arch_info_struct[3] 45 #define SH3_NEXT &arch_info_struct[4] 46 #define SH3_DSP_NEXT &arch_info_struct[5] 47 #define SH3E_NEXT &arch_info_struct[6] 48 #define SH4_NEXT &arch_info_struct[7] 49 #define SH64_NEXT NULL 57 50 58 51 static const bfd_arch_info_type arch_info_struct[] = … … 67 60 "sh2", /* printable name */ 68 61 1, 69 false, /* not the default */62 FALSE, /* not the default */ 70 63 bfd_default_compatible, 71 scan_mach,64 bfd_default_scan, 72 65 SH2_NEXT 66 }, 67 { 68 32, /* 32 bits in a word */ 69 32, /* 32 bits in an address */ 70 8, /* 8 bits in a byte */ 71 bfd_arch_sh, 72 bfd_mach_sh2e, 73 "sh", /* arch_name */ 74 "sh2e", /* printable name */ 75 1, 76 FALSE, /* not the default */ 77 bfd_default_compatible, 78 bfd_default_scan, 79 SH2E_NEXT 73 80 }, 74 81 { … … 81 88 "sh-dsp", /* printable name */ 82 89 1, 83 false, /* not the default */90 FALSE, /* not the default */ 84 91 bfd_default_compatible, 85 scan_mach,92 bfd_default_scan, 86 93 SH_DSP_NEXT 87 94 }, … … 95 102 "sh3", /* printable name */ 96 103 1, 97 false, /* not the default */104 FALSE, /* not the default */ 98 105 bfd_default_compatible, 99 scan_mach,106 bfd_default_scan, 100 107 SH3_NEXT 101 108 }, … … 109 116 "sh3-dsp", /* printable name */ 110 117 1, 111 false, /* not the default */118 FALSE, /* not the default */ 112 119 bfd_default_compatible, 113 scan_mach,120 bfd_default_scan, 114 121 SH3_DSP_NEXT 115 122 }, … … 123 130 "sh3e", /* printable name */ 124 131 1, 125 false, /* not the default */132 FALSE, /* not the default */ 126 133 bfd_default_compatible, 127 scan_mach,134 bfd_default_scan, 128 135 SH3E_NEXT 129 136 }, … … 137 144 "sh4", /* printable name */ 138 145 1, 139 false, /* not the default */146 FALSE, /* not the default */ 140 147 bfd_default_compatible, 141 scan_mach,148 bfd_default_scan, 142 149 SH4_NEXT 150 }, 151 { 152 64, /* 64 bits in a word */ 153 64, /* 64 bits in an address */ 154 8, /* 8 bits in a byte */ 155 bfd_arch_sh, 156 bfd_mach_sh5, 157 "sh", /* arch_name */ 158 "sh5", /* printable name */ 159 1, 160 FALSE, /* not the default */ 161 bfd_default_compatible, 162 bfd_default_scan, 163 SH64_NEXT 143 164 }, 144 165 }; … … 154 175 "sh", /* printable name */ 155 176 1, 156 true, /* the default machine */177 TRUE, /* the default machine */ 157 178 bfd_default_compatible, 158 scan_mach,179 bfd_default_scan, 159 180 SH_NEXT 160 181 }; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.