]>
Commit | Line | Data |
---|---|---|
ae115e51 ILT |
1 | /* bfd back-end for mips support |
2 | Copyright (C) 1990, 91, 92, 93, 94 Free Software Foundation, Inc. | |
3 | Written by Steve Chamberlain of Cygnus Support. | |
4 | ||
5 | This file is part of BFD, the Binary File Descriptor library. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program; if not, write to the Free Software | |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
20 | ||
21 | #include "bfd.h" | |
22 | #include "sysdep.h" | |
23 | #include "libbfd.h" | |
24 | ||
25 | static bfd_arch_info_type arch_info_struct[] = | |
26 | { | |
27 | { | |
28 | 32, /* 32 bits in a word */ | |
29 | 32, /* 32 bits in an address */ | |
30 | 8, /* 8 bits in a byte */ | |
31 | bfd_arch_mips, | |
32 | 3000, | |
33 | "mips", | |
34 | "mips:3000", | |
35 | 3, | |
36 | true, | |
37 | bfd_default_compatible, | |
38 | bfd_default_scan, | |
39 | 0, | |
40 | }, | |
41 | { | |
42 | 32, /* 32 bits in a word */ | |
43 | 32, /* 32 bits in an address */ | |
44 | 8, /* 8 bits in a byte */ | |
45 | bfd_arch_mips, | |
46 | 6000, | |
47 | "mips", | |
48 | "mips:6000", | |
49 | 3, | |
50 | false, | |
51 | bfd_default_compatible, | |
52 | bfd_default_scan, | |
53 | 0, | |
54 | }, | |
55 | { | |
56 | 64, /* 64 bits in a word */ | |
57 | 64, /* 64 bits in an address */ | |
58 | 8, /* 8 bits in a byte */ | |
59 | bfd_arch_mips, | |
60 | 4000, | |
61 | "mips", | |
62 | "mips:4000", | |
63 | 3, | |
64 | false, | |
65 | bfd_default_compatible, | |
66 | bfd_default_scan , | |
67 | 0, | |
68 | }, | |
69 | { | |
70 | 64, /* 64 bits in a word */ | |
71 | 64, /* 64 bits in an address */ | |
72 | 8, /* 8 bits in a byte */ | |
73 | bfd_arch_mips, | |
74 | 8000, | |
75 | "mips", | |
76 | "mips:8000", | |
77 | 3, | |
78 | false, | |
79 | bfd_default_compatible, | |
80 | bfd_default_scan , | |
81 | 0, | |
82 | } | |
83 | }; | |
84 | ||
85 | void | |
86 | bfd_mips_arch () | |
87 | { | |
88 | register unsigned int i; | |
89 | ||
90 | for (i = 0; i < sizeof (arch_info_struct) / sizeof (*arch_info_struct); i++) | |
91 | bfd_arch_linkin(&arch_info_struct[i]); | |
92 | } |