* frame.c (put_frame_register): Don't use temporary buffer.
[deliverable/binutils-gdb.git] / bfd / cpu-sparc.c
CommitLineData
252b5132 1/* BFD support for the SPARC architecture.
aa820537 2 Copyright 1992, 1995, 1996, 1998, 2000, 2002, 2005, 2007
b74fa2cd 3 Free Software Foundation, Inc.
252b5132 4
cd123cb7 5 This file is part of BFD, the Binary File Descriptor library.
252b5132 6
cd123cb7
NC
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 3 of the License, or
10 (at your option) any later version.
252b5132 11
cd123cb7
NC
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.
252b5132 16
cd123cb7
NC
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., 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
252b5132 21
252b5132 22#include "sysdep.h"
3db64b00 23#include "bfd.h"
252b5132
RH
24#include "libbfd.h"
25
252b5132
RH
26static const bfd_arch_info_type arch_info_struct[] =
27{
28 {
29 32, /* bits in a word */
30 32, /* bits in an address */
31 8, /* bits in a byte */
32 bfd_arch_sparc,
33 bfd_mach_sparc_sparclet,
34 "sparc",
35 "sparc:sparclet",
36 3,
b34976b6 37 FALSE,
b74fa2cd 38 bfd_default_compatible,
252b5132 39 bfd_default_scan,
b7761f11 40 bfd_arch_default_fill,
252b5132
RH
41 &arch_info_struct[1],
42 },
43 {
44 32, /* bits in a word */
45 32, /* bits in an address */
46 8, /* bits in a byte */
47 bfd_arch_sparc,
48 bfd_mach_sparc_sparclite,
49 "sparc",
50 "sparc:sparclite",
51 3,
b34976b6 52 FALSE,
b74fa2cd 53 bfd_default_compatible,
252b5132 54 bfd_default_scan,
b7761f11 55 bfd_arch_default_fill,
252b5132
RH
56 &arch_info_struct[2],
57 },
58 {
59 32, /* bits in a word */
60 32, /* bits in an address */
61 8, /* bits in a byte */
62 bfd_arch_sparc,
63 bfd_mach_sparc_v8plus,
64 "sparc",
65 "sparc:v8plus",
66 3,
b34976b6 67 FALSE,
b74fa2cd 68 bfd_default_compatible,
252b5132 69 bfd_default_scan,
b7761f11 70 bfd_arch_default_fill,
252b5132
RH
71 &arch_info_struct[3],
72 },
73 {
74 32, /* bits in a word */
75 32, /* bits in an address */
76 8, /* bits in a byte */
77 bfd_arch_sparc,
78 bfd_mach_sparc_v8plusa,
79 "sparc",
80 "sparc:v8plusa",
81 3,
b34976b6 82 FALSE,
b74fa2cd 83 bfd_default_compatible,
252b5132 84 bfd_default_scan,
b7761f11 85 bfd_arch_default_fill,
252b5132
RH
86 &arch_info_struct[4],
87 },
88 {
89 32, /* bits in a word */
90 32, /* bits in an address */
91 8, /* bits in a byte */
92 bfd_arch_sparc,
93 bfd_mach_sparc_sparclite_le,
94 "sparc",
95 "sparc:sparclite_le",
96 3,
b34976b6 97 FALSE,
b74fa2cd 98 bfd_default_compatible,
252b5132 99 bfd_default_scan,
b7761f11 100 bfd_arch_default_fill,
252b5132
RH
101 &arch_info_struct[5],
102 },
103 {
104 64, /* bits in a word */
105 64, /* bits in an address */
106 8, /* bits in a byte */
107 bfd_arch_sparc,
108 bfd_mach_sparc_v9,
109 "sparc",
110 "sparc:v9",
111 3,
b34976b6 112 FALSE,
b74fa2cd 113 bfd_default_compatible,
252b5132 114 bfd_default_scan,
b7761f11 115 bfd_arch_default_fill,
252b5132
RH
116 &arch_info_struct[6],
117 },
118 {
119 64, /* bits in a word */
120 64, /* bits in an address */
121 8, /* bits in a byte */
122 bfd_arch_sparc,
123 bfd_mach_sparc_v9a,
124 "sparc",
125 "sparc:v9a",
126 3,
b34976b6 127 FALSE,
b74fa2cd 128 bfd_default_compatible,
252b5132 129 bfd_default_scan,
b7761f11 130 bfd_arch_default_fill,
19f7b010
JJ
131 &arch_info_struct[7],
132 },
133 {
134 32, /* bits in a word */
135 32, /* bits in an address */
136 8, /* bits in a byte */
137 bfd_arch_sparc,
138 bfd_mach_sparc_v8plusb,
139 "sparc",
140 "sparc:v8plusb",
141 3,
b34976b6 142 FALSE,
b74fa2cd 143 bfd_default_compatible,
19f7b010 144 bfd_default_scan,
b7761f11 145 bfd_arch_default_fill,
19f7b010
JJ
146 &arch_info_struct[8],
147 },
148 {
149 64, /* bits in a word */
150 64, /* bits in an address */
151 8, /* bits in a byte */
152 bfd_arch_sparc,
153 bfd_mach_sparc_v9b,
154 "sparc",
155 "sparc:v9b",
156 3,
b34976b6 157 FALSE,
b74fa2cd 158 bfd_default_compatible,
19f7b010 159 bfd_default_scan,
b7761f11 160 bfd_arch_default_fill,
252b5132
RH
161 0,
162 }
163};
164
165const bfd_arch_info_type bfd_sparc_arch =
166 {
167 32, /* bits in a word */
168 32, /* bits in an address */
169 8, /* bits in a byte */
170 bfd_arch_sparc,
171 bfd_mach_sparc,
172 "sparc",
173 "sparc",
174 3,
b34976b6 175 TRUE, /* the default */
b74fa2cd 176 bfd_default_compatible,
252b5132 177 bfd_default_scan,
b7761f11 178 bfd_arch_default_fill,
252b5132
RH
179 &arch_info_struct[0],
180 };
This page took 0.63769 seconds and 4 git commands to generate.