1 /* BFD PowerPC CPU definition
2 Copyright 1994, 1995, 1996, 2000, 2001, 2002
3 Free Software Foundation, Inc.
4 Contributed by Ian Lance Taylor, Cygnus Support.
6 This file is part of BFD, the Binary File Descriptor library.
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.
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.
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. */
26 /* The common PowerPC architecture is compatible with the RS/6000. */
28 static const bfd_arch_info_type
*powerpc_compatible
29 PARAMS ((const bfd_arch_info_type
*, const bfd_arch_info_type
*));
31 static const bfd_arch_info_type
*
32 powerpc_compatible (a
,b
)
33 const bfd_arch_info_type
*a
;
34 const bfd_arch_info_type
*b
;
36 BFD_ASSERT (a
->arch
== bfd_arch_powerpc
);
41 case bfd_arch_powerpc
:
42 return bfd_default_compatible (a
, b
);
51 const bfd_arch_info_type bfd_powerpc_archs
[] =
54 32, /* 32 bits in a word */
55 32, /* 32 bits in an address */
56 8, /* 8 bits in a byte */
62 false, /* not the default */
68 32, /* 32 bits in a word */
69 32, /* 32 bits in an address */
70 8, /* 8 bits in a byte */
76 false, /* not the default */
82 32, /* 32 bits in a word */
83 32, /* 32 bits in an address */
84 8, /* 8 bits in a byte */
90 false, /* not the default */
96 32, /* 32 bits in a word */
97 32, /* 32 bits in an address */
98 8, /* 8 bits in a byte */
104 false, /* not the default */
107 &bfd_powerpc_archs
[4]
110 32, /* 32 bits in a word */
111 32, /* 32 bits in an address */
112 8, /* 8 bits in a byte */
118 false, /* not the default */
121 &bfd_powerpc_archs
[5]
124 64, /* 64 bits in a word */
125 64, /* 64 bits in an address */
126 8, /* 8 bits in a byte */
132 false, /* not the default */
135 &bfd_powerpc_archs
[6]
138 64, /* 64 bits in a word */
139 64, /* 64 bits in an address */
140 8, /* 8 bits in a byte */
146 false, /* not the default */
149 &bfd_powerpc_archs
[7]
152 64, /* 64 bits in a word */
153 64, /* 64 bits in an address */
154 8, /* 8 bits in a byte */
160 false, /* not the default */
163 &bfd_powerpc_archs
[8]
166 64, /* 64 bits in a word */
167 64, /* 64 bits in an address */
168 8, /* 8 bits in a byte */
174 false, /* not the default */
177 &bfd_powerpc_archs
[9]
180 64, /* 64 bits in a word */
181 64, /* 64 bits in an address */
182 8, /* 8 bits in a byte */
184 bfd_mach_ppc_rs64iii
,
188 false, /* not the default */
191 &bfd_powerpc_archs
[10]
194 32, /* 32 bits in a word */
195 32, /* 32 bits in an address */
196 8, /* 8 bits in a byte */
202 false, /* not the default */
205 &bfd_powerpc_archs
[11]
208 32, /* 32 bits in a word */
209 32, /* 32 bits in an address */
210 8, /* 8 bits in a byte */
216 false, /* not the default */
219 &bfd_powerpc_archs
[12]
222 64, /* 64 bits in a word */
223 64, /* 64 bits in an address */
224 8, /* 8 bits in a byte */
230 BFD_DEFAULT_TARGET_SIZE
== 64, /* default for 64 bit target */
233 &bfd_powerpc_archs
[13]
236 32, /* 32 bits in a word */
237 32, /* 32 bits in an address */
238 8, /* 8 bits in a byte */
240 bfd_mach_ppc
, /* for the POWER/PowerPC common architecture */
244 BFD_DEFAULT_TARGET_SIZE
!= 64, /* default for 32 bit target */