Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
[deliverable/binutils-gdb.git] / bfd / cpu-sparc.c
CommitLineData
5bc513b4
DE
1/* BFD support for the SPARC architecture.
2 Copyright (C) 1992, 1995, 1996 Free Software Foundation, Inc.
3
4This file is part of BFD, the Binary File Descriptor library.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, 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
24static const bfd_arch_info_type arch_info_struct[] =
25{
5bc513b4 26 {
e8bea13f
DE
27 64, /* bits in a word */
28 64, /* bits in an address */
5bc513b4
DE
29 8, /* bits in a byte */
30 bfd_arch_sparc,
e8bea13f 31 bfd_mach_sparc_v9,
5bc513b4 32 "sparc",
e8bea13f 33 "sparc:v9",
5bc513b4
DE
34 3,
35 false,
36 bfd_default_compatible,
37 bfd_default_scan,
38 &arch_info_struct[1],
39 },
e8bea13f 40 /* start-sanitize-v8plus */
5bc513b4
DE
41 {
42 32, /* bits in a word */
43 32, /* bits in an address */
44 8, /* bits in a byte */
45 bfd_arch_sparc,
e8bea13f 46 bfd_mach_sparc_v8plus,
5bc513b4 47 "sparc",
e8bea13f 48 "sparc:v8plus",
5bc513b4
DE
49 3,
50 false,
51 bfd_default_compatible,
52 bfd_default_scan,
53 &arch_info_struct[2],
54 },
5bc513b4 55 {
e8bea13f
DE
56 32, /* bits in a word */
57 32, /* bits in an address */
5bc513b4
DE
58 8, /* bits in a byte */
59 bfd_arch_sparc,
e8bea13f 60 bfd_mach_sparc_v8plusa,
5bc513b4 61 "sparc",
e8bea13f 62 "sparc:v8plusa",
5bc513b4
DE
63 3,
64 false,
65 bfd_default_compatible,
66 bfd_default_scan,
67 &arch_info_struct[3],
68 },
e8bea13f 69 /* end-sanitize-v8plus */
5bc513b4
DE
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
86const 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.054634 seconds and 4 git commands to generate.