46d62924ca14fe93ee264921edee9410791fb5d9
[deliverable/binutils-gdb.git] / bfd / cpu-sparc.c
1 /* BFD support for the SPARC architecture.
2 Copyright (C) 1992, 1995, 1996 Free Software Foundation, Inc.
3
4 This file is part of BFD, the Binary File Descriptor library.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20 #include "bfd.h"
21 #include "sysdep.h"
22 #include "libbfd.h"
23
24 static const bfd_arch_info_type arch_info_struct[] =
25 {
26 /* start-sanitize-v8plus */
27 {
28 32, /* bits in a word */
29 32, /* bits in an address */
30 8, /* bits in a byte */
31 bfd_arch_sparc,
32 bfd_mach_sparc_v8plus,
33 "sparc",
34 "sparc:v8plus",
35 3,
36 false,
37 bfd_default_compatible,
38 bfd_default_scan,
39 &arch_info_struct[1],
40 },
41 {
42 32, /* bits in a word */
43 32, /* bits in an address */
44 8, /* bits in a byte */
45 bfd_arch_sparc,
46 bfd_mach_sparc_v8plusa,
47 "sparc",
48 "sparc:v8plusa",
49 3,
50 false,
51 bfd_default_compatible,
52 bfd_default_scan,
53 &arch_info_struct[2],
54 },
55 /* end-sanitize-v8plus */
56 {
57 64, /* bits in a word */
58 64, /* bits in an address */
59 8, /* bits in a byte */
60 bfd_arch_sparc,
61 bfd_mach_sparc_v9,
62 "sparc",
63 "sparc:v9",
64 3,
65 false,
66 bfd_default_compatible,
67 bfd_default_scan,
68 &arch_info_struct[3],
69 },
70 {
71 64, /* bits in a word */
72 64, /* bits in an address */
73 8, /* bits in a byte */
74 bfd_arch_sparc,
75 bfd_mach_sparc_v9a,
76 "sparc",
77 "sparc:v9a",
78 3,
79 false,
80 bfd_default_compatible,
81 bfd_default_scan,
82 0,
83 }
84 };
85
86 const bfd_arch_info_type bfd_sparc_arch =
87 {
88 32, /* bits in a word */
89 32, /* bits in an address */
90 8, /* bits in a byte */
91 bfd_arch_sparc,
92 bfd_mach_sparc,
93 "sparc",
94 "sparc",
95 3,
96 true, /* the default */
97 bfd_default_compatible,
98 bfd_default_scan,
99 &arch_info_struct[0],
100 };
This page took 0.034002 seconds and 4 git commands to generate.