1 /* BFD PowerPC CPU definition
2 Copyright 1994, 1995, 1996, 2000 Free Software Foundation, Inc.
3 Contributed by Ian Lance Taylor, Cygnus Support.
5 This file is part of BFD, the Binary File Descriptor library.
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.
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.
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. */
25 /* The common PowerPC architecture is compatible with the RS/6000. */
27 static const bfd_arch_info_type
*powerpc_compatible
28 PARAMS ((const bfd_arch_info_type
*, const bfd_arch_info_type
*));
30 static const bfd_arch_info_type
*
31 powerpc_compatible (a
,b
)
32 const bfd_arch_info_type
*a
;
33 const bfd_arch_info_type
*b
;
35 BFD_ASSERT (a
->arch
== bfd_arch_powerpc
);
40 case bfd_arch_powerpc
:
41 return bfd_default_compatible (a
, b
);
50 static const bfd_arch_info_type arch_info_struct
[] =
53 32, /* 32 bits in a word */
54 32, /* 32 bits in an address */
55 8, /* 8 bits in a byte */
61 false, /* not the default */
67 32, /* 32 bits in a word */
68 32, /* 32 bits in an address */
69 8, /* 8 bits in a byte */
75 false, /* not the default */
81 32, /* 32 bits in a word */
82 32, /* 32 bits in an address */
83 8, /* 8 bits in a byte */
89 false, /* not the default */
95 32, /* 32 bits in a word */
96 32, /* 32 bits in an address */
97 8, /* 8 bits in a byte */
103 false, /* not the default */
109 32, /* 32 bits in a word */
110 32, /* 32 bits in an address */
111 8, /* 8 bits in a byte */
117 false, /* not the default */
123 64, /* 64 bits in a word */
124 64, /* 64 bits in an address */
125 8, /* 8 bits in a byte */
131 false, /* not the default */
137 64, /* 64 bits in a word */
138 64, /* 64 bits in an address */
139 8, /* 8 bits in a byte */
145 false, /* not the default */
151 64, /* 64 bits in a word */
152 64, /* 64 bits in an address */
153 8, /* 8 bits in a byte */
159 false, /* not the default */
165 64, /* 64 bits in a word */
166 64, /* 64 bits in an address */
167 8, /* 8 bits in a byte */
173 false, /* not the default */
179 64, /* 64 bits in a word */
180 64, /* 64 bits in an address */
181 8, /* 8 bits in a byte */
183 bfd_mach_ppc_rs64iii
,
187 false, /* not the default */
190 &arch_info_struct
[10]
193 32, /* 32 bits in a word */
194 32, /* 32 bits in an address */
195 8, /* 8 bits in a byte */
201 false, /* not the default */
204 &arch_info_struct
[11]
207 32, /* 32 bits in a word */
208 32, /* 32 bits in an address */
209 8, /* 8 bits in a byte */
215 false, /* not the default */
222 const bfd_arch_info_type bfd_powerpc_arch
=
224 32, /* 32 bits in a word */
225 32, /* 32 bits in an address */
226 8, /* 8 bits in a byte */
228 bfd_mach_ppc
, /* for the POWER/PowerPC common architecture */
232 true, /* the default */