Back to index

cell-binutils  2.17cvs20070401
cpu-sparc.c
Go to the documentation of this file.
00001 /* BFD support for the SPARC architecture.
00002    Copyright 1992, 1995, 1996, 1998, 2000, 2002
00003    Free Software Foundation, Inc.
00004 
00005 This file is part of BFD, the Binary File Descriptor library.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #include "bfd.h"
00022 #include "sysdep.h"
00023 #include "libbfd.h"
00024 
00025 static const bfd_arch_info_type arch_info_struct[] =
00026 {
00027   {
00028     32,       /* bits in a word */
00029     32,       /* bits in an address */
00030     8, /* bits in a byte */
00031     bfd_arch_sparc,
00032     bfd_mach_sparc_sparclet,
00033     "sparc",
00034     "sparc:sparclet",
00035     3,
00036     FALSE,
00037     bfd_default_compatible,
00038     bfd_default_scan,
00039     &arch_info_struct[1],
00040   },
00041   {
00042     32,       /* bits in a word */
00043     32,       /* bits in an address */
00044     8, /* bits in a byte */
00045     bfd_arch_sparc,
00046     bfd_mach_sparc_sparclite,
00047     "sparc",
00048     "sparc:sparclite",
00049     3,
00050     FALSE,
00051     bfd_default_compatible,
00052     bfd_default_scan,
00053     &arch_info_struct[2],
00054   },
00055   {
00056     32,       /* bits in a word */
00057     32,       /* bits in an address */
00058     8, /* bits in a byte */
00059     bfd_arch_sparc,
00060     bfd_mach_sparc_v8plus,
00061     "sparc",
00062     "sparc:v8plus",
00063     3,
00064     FALSE,
00065     bfd_default_compatible,
00066     bfd_default_scan,
00067     &arch_info_struct[3],
00068   },
00069   {
00070     32,       /* bits in a word */
00071     32,       /* bits in an address */
00072     8, /* bits in a byte */
00073     bfd_arch_sparc,
00074     bfd_mach_sparc_v8plusa,
00075     "sparc",
00076     "sparc:v8plusa",
00077     3,
00078     FALSE,
00079     bfd_default_compatible,
00080     bfd_default_scan,
00081     &arch_info_struct[4],
00082   },
00083   {
00084     32,       /* bits in a word */
00085     32,       /* bits in an address */
00086     8, /* bits in a byte */
00087     bfd_arch_sparc,
00088     bfd_mach_sparc_sparclite_le,
00089     "sparc",
00090     "sparc:sparclite_le",
00091     3,
00092     FALSE,
00093     bfd_default_compatible,
00094     bfd_default_scan,
00095     &arch_info_struct[5],
00096   },
00097   {
00098     64,       /* bits in a word */
00099     64,       /* bits in an address */
00100     8, /* bits in a byte */
00101     bfd_arch_sparc,
00102     bfd_mach_sparc_v9,
00103     "sparc",
00104     "sparc:v9",
00105     3,
00106     FALSE,
00107     bfd_default_compatible,
00108     bfd_default_scan,
00109     &arch_info_struct[6],
00110   },
00111   {
00112     64,       /* bits in a word */
00113     64,       /* bits in an address */
00114     8, /* bits in a byte */
00115     bfd_arch_sparc,
00116     bfd_mach_sparc_v9a,
00117     "sparc",
00118     "sparc:v9a",
00119     3,
00120     FALSE,
00121     bfd_default_compatible,
00122     bfd_default_scan,
00123     &arch_info_struct[7],
00124   },
00125   {
00126     32,       /* bits in a word */
00127     32,       /* bits in an address */
00128     8, /* bits in a byte */
00129     bfd_arch_sparc,
00130     bfd_mach_sparc_v8plusb,
00131     "sparc",
00132     "sparc:v8plusb",
00133     3,
00134     FALSE,
00135     bfd_default_compatible,
00136     bfd_default_scan,
00137     &arch_info_struct[8],
00138   },
00139   {
00140     64,       /* bits in a word */
00141     64,       /* bits in an address */
00142     8, /* bits in a byte */
00143     bfd_arch_sparc,
00144     bfd_mach_sparc_v9b,
00145     "sparc",
00146     "sparc:v9b",
00147     3,
00148     FALSE,
00149     bfd_default_compatible,
00150     bfd_default_scan,
00151     0,
00152   }
00153 };
00154 
00155 const bfd_arch_info_type bfd_sparc_arch =
00156   {
00157     32,       /* bits in a word */
00158     32,       /* bits in an address */
00159     8, /* bits in a byte */
00160     bfd_arch_sparc,
00161     bfd_mach_sparc,
00162     "sparc",
00163     "sparc",
00164     3,
00165     TRUE, /* the default */
00166     bfd_default_compatible,
00167     bfd_default_scan,
00168     &arch_info_struct[0],
00169   };