Move v8plus stuff around so sanitized code works.
[external/binutils.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   {
27     64, /* bits in a word */
28     64, /* bits in an address */
29     8,  /* bits in a byte */
30     bfd_arch_sparc,
31     bfd_mach_sparc_v9,
32     "sparc",
33     "sparc:v9",
34     3,
35     false,
36     bfd_default_compatible, 
37     bfd_default_scan,
38     &arch_info_struct[1],
39   },
40   /* start-sanitize-v8plus */
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_v8plus,
47     "sparc",
48     "sparc:v8plus",
49     3,
50     false,
51     bfd_default_compatible, 
52     bfd_default_scan,
53     &arch_info_struct[2],
54   },
55   {
56     32, /* bits in a word */
57     32, /* bits in an address */
58     8,  /* bits in a byte */
59     bfd_arch_sparc,
60     bfd_mach_sparc_v8plusa,
61     "sparc",
62     "sparc:v8plusa",
63     3,
64     false,
65     bfd_default_compatible, 
66     bfd_default_scan,
67     &arch_info_struct[3],
68   },
69   /* end-sanitize-v8plus */
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   };