Back to index

cell-binutils  2.17cvs20070401
cpu-hppa.c
Go to the documentation of this file.
00001 /* BFD support for the HP Precision Architecture architecture.
00002    Copyright 1992, 1995, 1998, 1999, 2000, 2002, 2003
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 bfd_hppa10_arch =
00026 {
00027   32,                       /* 32 bits in a word */
00028   32,                       /* 32 bits in an address */
00029   8,                        /* 8 bits in a byte */
00030   bfd_arch_hppa,
00031   bfd_mach_hppa10,          /* By convention PA1.0 = 10 */
00032   "hppa",
00033   "hppa1.0",
00034   3,
00035   TRUE,                            /* Unless we use 1.1 specific features */
00036   bfd_default_compatible,
00037   bfd_default_scan ,
00038   0,
00039 };
00040 
00041 /* PA2.0 in narrow mode */
00042 static const bfd_arch_info_type bfd_hppa20_arch =
00043 {
00044   32,                       /* 32 bits in a word */
00045   32,                       /* 32 bits in an address */
00046   8,                        /* 8 bits in a byte */
00047   bfd_arch_hppa,
00048   bfd_mach_hppa20,          /* By convention PA2.0 = 20 */
00049   "hppa",
00050   "hppa2.0",
00051   3,
00052   FALSE,                    /* Unless we use 1.1 specific features */
00053   bfd_default_compatible,
00054   bfd_default_scan ,
00055   &bfd_hppa10_arch,
00056 };
00057 
00058 /* PA2.0 in wide mode */
00059 static const bfd_arch_info_type bfd_hppa20w_arch =
00060 {
00061   64,                       /* 64 bits in a word */
00062   64,                       /* 64 bits in an address */
00063   8,                        /* 8 bits in a byte */
00064   bfd_arch_hppa,
00065   bfd_mach_hppa20w,         /* ??? How best to describe wide mode here?  */
00066   "hppa",
00067   "hppa2.0w",
00068   3,
00069   FALSE,                    /* Unless we use 1.1 specific features */
00070   bfd_default_compatible,
00071   bfd_default_scan ,
00072   &bfd_hppa20_arch,
00073 };
00074 
00075 const bfd_arch_info_type bfd_hppa_arch =
00076 {
00077   32,                       /* 32 bits in a word */
00078   32,                       /* 32 bits in an address */
00079   8,                        /* 8 bits in a byte */
00080   bfd_arch_hppa,
00081   bfd_mach_hppa11,          /* By convention PA1.1 = 11 */
00082   "hppa",
00083   "hppa1.1",
00084   3,
00085   FALSE,                    /* 1.1 specific features used */
00086   bfd_default_compatible,
00087   bfd_default_scan ,
00088   &bfd_hppa20w_arch,
00089 };