Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* BFD library support routines for the H8/500 architecture. |
9553c638 | 2 | Copyright 1993, 1995, 1999, 2000, 2001, 2002, 2003, 2005 |
eac93a98 | 3 | Free Software Foundation, Inc. |
252b5132 RH |
4 | Hacked by Steve Chamberlain of Cygnus Support. |
5 | ||
6 | This file is part of BFD, the Binary File Descriptor library. | |
7 | ||
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. | |
12 | ||
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. | |
17 | ||
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 | |
3e110533 | 20 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ |
252b5132 RH |
21 | |
22 | #include "bfd.h" | |
23 | #include "sysdep.h" | |
24 | #include "libbfd.h" | |
25 | ||
b34976b6 AM |
26 | static bfd_boolean scan_mach |
27 | PARAMS ((const struct bfd_arch_info *, const char *)); | |
252b5132 | 28 | |
b34976b6 | 29 | static bfd_boolean |
252b5132 | 30 | scan_mach (info, string) |
5f771d47 | 31 | const struct bfd_arch_info *info ATTRIBUTE_UNUSED; |
252b5132 RH |
32 | const char *string; |
33 | { | |
b34976b6 AM |
34 | if (strcmp (string,"h8/500") == 0) |
35 | return TRUE; | |
36 | if (strcmp (string,"H8/500") == 0) | |
37 | return TRUE; | |
38 | if (strcmp (string,"h8500") == 0) | |
39 | return TRUE; | |
40 | if (strcmp (string,"H8500") == 0) | |
41 | return TRUE; | |
42 | return FALSE; | |
252b5132 RH |
43 | } |
44 | ||
252b5132 RH |
45 | const bfd_arch_info_type bfd_h8500_arch = |
46 | { | |
47 | 16, /* 16 bits in a word */ | |
48 | 24, /* 24 bits in an address */ | |
49 | 8, /* 8 bits in a byte */ | |
50 | bfd_arch_h8500, | |
51 | 0, /* only 1 machine */ | |
52 | "h8500", /* arch_name */ | |
53 | "h8500", /* printable name */ | |
54 | 1, | |
b34976b6 | 55 | TRUE, /* the default machine */ |
252b5132 RH |
56 | bfd_default_compatible, |
57 | scan_mach, | |
58 | 0, | |
59 | }; |