Back to index

cell-binutils  2.17cvs20070401
cpu-i370.c
Go to the documentation of this file.
00001 /* BFD i370 CPU definition
00002    Copyright 1994, 1995, 1996, 1998, 1999, 2000, 2002, 2005
00003    Free Software Foundation, Inc.
00004    Contributed by Ian Lance Taylor, Cygnus Support.
00005    Hacked by Linas Vepstas <linas@linas.org> in 1998, 1999
00006 
00007    This file is part of BFD, the Binary File Descriptor library.
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 2 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program; if not, write to the Free Software
00021    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
00022    MA 02110-1301, USA.  */
00023 
00024 #include "bfd.h"
00025 #include "sysdep.h"
00026 #include "libbfd.h"
00027 
00028 static const bfd_arch_info_type arch_info_struct[] =
00029 {
00030   /* Hack alert: old old machines are really 16 and 24 bit arch ...  */
00031   {
00032     32,       /* 32 bits in a word.  */
00033     32,       /* 32 bits in an address.  */
00034     8,        /* 8 bits in a byte.  */
00035     bfd_arch_i370,
00036     360,      /* For the 360.  */
00037     "i370",
00038     "i370:360",
00039     3,
00040     FALSE,    /* Not the default.  */
00041     bfd_default_compatible,
00042     bfd_default_scan,
00043     &arch_info_struct[1]
00044   },
00045   {
00046     32,       /* 32 bits in a word.  */
00047     32,       /* 32 bits in an address.  */
00048     8,        /* 8 bits in a byte.  */
00049     bfd_arch_i370,
00050     370,      /* For the 370.  */
00051     "i370",
00052     "i370:370",
00053     3,
00054     FALSE,    /* Not the default.  */
00055     bfd_default_compatible,
00056     bfd_default_scan,
00057     0
00058   },
00059 };
00060 
00061 const bfd_arch_info_type bfd_i370_arch =
00062 {
00063   32,         /* 32 bits in a word.  */
00064   32,         /* 32 bits in an address.  */
00065   8,          /* 8 bits in a byte.  */
00066   bfd_arch_i370,
00067   0,          /* For the 360/370 common architecture.  */
00068   "i370",
00069   "i370:common",
00070   3,
00071   TRUE,       /* The default.  */
00072   bfd_default_compatible,
00073   bfd_default_scan,
00074   & arch_info_struct[0]
00075 };