OLD | NEW |
1 /* BFD library support routines for the H8/500 architecture. | 1 /* BFD library support routines for the H8/500 architecture. |
2 Copyright 1993, 1995, 1999, 2000, 2001, 2002, 2003, 2005, 2007 | 2 Copyright 1993, 1995, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2012 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Hacked by Steve Chamberlain of Cygnus Support. | 4 Hacked by Steve Chamberlain of Cygnus Support. |
5 | 5 |
6 This file is part of BFD, the Binary File Descriptor library. | 6 This file is part of BFD, the Binary File Descriptor library. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 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 | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
11 (at your option) any later version. | 11 (at your option) any later version. |
12 | 12 |
13 This program is distributed in the hope that it will be useful, | 13 This program is distributed in the hope that it will be useful, |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 GNU General Public License for more details. | 16 GNU General Public License for more details. |
17 | 17 |
18 You should have received a copy of the GNU General Public License | 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 | 19 along with this program; if not, write to the Free Software |
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
21 MA 02110-1301, USA. */ | 21 MA 02110-1301, USA. */ |
22 | 22 |
23 #include "sysdep.h" | 23 #include "sysdep.h" |
24 #include "bfd.h" | 24 #include "bfd.h" |
25 #include "libbfd.h" | 25 #include "libbfd.h" |
26 | 26 |
27 static bfd_boolean scan_mach | 27 static bfd_boolean scan_mach |
28 PARAMS ((const struct bfd_arch_info *, const char *)); | 28 (const struct bfd_arch_info *, const char *); |
29 | 29 |
30 static bfd_boolean | 30 static bfd_boolean |
31 scan_mach (info, string) | 31 scan_mach (const struct bfd_arch_info *info ATTRIBUTE_UNUSED, |
32 const struct bfd_arch_info *info ATTRIBUTE_UNUSED; | 32 » const char *string) |
33 const char *string; | |
34 { | 33 { |
35 if (strcmp (string,"h8/500") == 0) | 34 if (strcmp (string,"h8/500") == 0) |
36 return TRUE; | 35 return TRUE; |
37 if (strcmp (string,"H8/500") == 0) | 36 if (strcmp (string,"H8/500") == 0) |
38 return TRUE; | 37 return TRUE; |
39 if (strcmp (string,"h8500") == 0) | 38 if (strcmp (string,"h8500") == 0) |
40 return TRUE; | 39 return TRUE; |
41 if (strcmp (string,"H8500") == 0) | 40 if (strcmp (string,"H8500") == 0) |
42 return TRUE; | 41 return TRUE; |
43 return FALSE; | 42 return FALSE; |
44 } | 43 } |
45 | 44 |
46 const bfd_arch_info_type bfd_h8500_arch = | 45 const bfd_arch_info_type bfd_h8500_arch = |
47 { | 46 { |
48 16, /* 16 bits in a word */ | 47 16, /* 16 bits in a word */ |
49 24, /* 24 bits in an address */ | 48 24, /* 24 bits in an address */ |
50 8, /* 8 bits in a byte */ | 49 8, /* 8 bits in a byte */ |
51 bfd_arch_h8500, | 50 bfd_arch_h8500, |
52 0, /* only 1 machine */ | 51 0, /* only 1 machine */ |
53 "h8500", /* arch_name */ | 52 "h8500", /* arch_name */ |
54 "h8500", /* printable name */ | 53 "h8500", /* printable name */ |
55 1, | 54 1, |
56 TRUE, /* the default machine */ | 55 TRUE, /* the default machine */ |
57 bfd_default_compatible, | 56 bfd_default_compatible, |
58 scan_mach, | 57 scan_mach, |
| 58 bfd_arch_default_fill, |
59 0, | 59 0, |
60 }; | 60 }; |
OLD | NEW |