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
[] =
53 #if BFD_DEFAULT_TARGET_SIZE == 64 /* default arch must come first. */
55 64, /* 64 bits in a word */
56 64, /* 64 bits in an address */
57 8, /* 8 bits in a byte */
63 true, /* default for 64 bit target */
69 32, /* 32 bits in a word */
70 32, /* 32 bits in an address */
71 8, /* 8 bits in a byte */
73 bfd_mach_ppc
, /* for the POWER/PowerPC common architecture */
80 &bfd_powerpc_archs
[2],
84 32, /* 32 bits in a word */
85 32, /* 32 bits in an address */
86 8, /* 8 bits in a byte */
88 bfd_mach_ppc
, /* for the POWER/PowerPC common architecture */
92 true, /* default for 32 bit target */
95 &bfd_powerpc_archs
[1],
98 64, /* 64 bits in a word */
99 64, /* 64 bits in an address */
100 8, /* 8 bits in a byte */
109 &bfd_powerpc_archs
[2]
113 32, /* 32 bits in a word */
114 32, /* 32 bits in an address */
115 8, /* 8 bits in a byte */
121 false, /* not the default */
124 &bfd_powerpc_archs
[3]
127 32, /* 32 bits in a word */
128 32, /* 32 bits in an address */
129 8, /* 8 bits in a byte */
135 false, /* not the default */
138 &bfd_powerpc_archs
[4]
141 32, /* 32 bits in a word */
142 32, /* 32 bits in an address */
143 8, /* 8 bits in a byte */
149 false, /* not the default */
152 &bfd_powerpc_archs
[5]
155 32, /* 32 bits in a word */
156 32, /* 32 bits in an address */
157 8, /* 8 bits in a byte */
163 false, /* not the default */
166 &bfd_powerpc_archs
[6]
169 32, /* 32 bits in a word */
170 32, /* 32 bits in an address */
171 8, /* 8 bits in a byte */
177 false, /* not the default */
180 &bfd_powerpc_archs
[7]
183 64, /* 64 bits in a word */
184 64, /* 64 bits in an address */
185 8, /* 8 bits in a byte */
191 false, /* not the default */
194 &bfd_powerpc_archs
[8]
197 64, /* 64 bits in a word */
198 64, /* 64 bits in an address */
199 8, /* 8 bits in a byte */
205 false, /* not the default */
208 &bfd_powerpc_archs
[9]
211 64, /* 64 bits in a word */
212 64, /* 64 bits in an address */
213 8, /* 8 bits in a byte */
219 false, /* not the default */
222 &bfd_powerpc_archs
[10]
225 64, /* 64 bits in a word */
226 64, /* 64 bits in an address */
227 8, /* 8 bits in a byte */
233 false, /* not the default */
236 &bfd_powerpc_archs
[11]
239 64, /* 64 bits in a word */
240 64, /* 64 bits in an address */
241 8, /* 8 bits in a byte */
243 bfd_mach_ppc_rs64iii
,
247 false, /* not the default */
250 &bfd_powerpc_archs
[12]
253 32, /* 32 bits in a word */
254 32, /* 32 bits in an address */
255 8, /* 8 bits in a byte */
261 false, /* not the default */
264 &bfd_powerpc_archs
[13]
267 32, /* 32 bits in a word */
268 32, /* 32 bits in an address */
269 8, /* 8 bits in a byte */
275 false, /* not the default */