Home | History | Annotate | Download | only in bfd
      1 /* BFD i370 CPU definition
      2    Copyright (C) 1994-2014 Free Software Foundation, Inc.
      3    Contributed by Ian Lance Taylor, Cygnus Support.
      4    Hacked by Linas Vepstas <linas (at) linas.org> in 1998, 1999
      5 
      6    This file is part of BFD, the Binary File Descriptor library.
      7 
      8    This program is free software; you can redistribute it and/or modify
      9    it under the terms of the GNU General Public License as published by
     10    the Free Software Foundation; either version 3 of the License, or
     11    (at your option) any later version.
     12 
     13    This program is distributed in the hope that it will be useful,
     14    but WITHOUT ANY WARRANTY; without even the implied warranty of
     15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16    GNU General Public License for more details.
     17 
     18    You should have received a copy of the GNU General Public License
     19    along with this program; if not, write to the Free Software
     20    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
     21    MA 02110-1301, USA.  */
     22 
     23 #include "sysdep.h"
     24 #include "bfd.h"
     25 #include "libbfd.h"
     26 
     27 static const bfd_arch_info_type arch_info_struct[] =
     28 {
     29   /* Hack alert: old old machines are really 16 and 24 bit arch ...  */
     30   {
     31     32, 	/* 32 bits in a word.  */
     32     32, 	/* 32 bits in an address.  */
     33     8,  	/* 8 bits in a byte.  */
     34     bfd_arch_i370,
     35     360, 	/* For the 360.  */
     36     "i370",
     37     "i370:360",
     38     3,
     39     FALSE, 	/* Not the default.  */
     40     bfd_default_compatible,
     41     bfd_default_scan,
     42     bfd_arch_default_fill,
     43     &arch_info_struct[1]
     44   },
     45   {
     46     32, 	/* 32 bits in a word.  */
     47     32, 	/* 32 bits in an address.  */
     48     8,  	/* 8 bits in a byte.  */
     49     bfd_arch_i370,
     50     370, 	/* For the 370.  */
     51     "i370",
     52     "i370:370",
     53     3,
     54     FALSE, 	/* Not the default.  */
     55     bfd_default_compatible,
     56     bfd_default_scan,
     57     bfd_arch_default_fill,
     58     0
     59   },
     60 };
     61 
     62 const bfd_arch_info_type bfd_i370_arch =
     63 {
     64   32, 		/* 32 bits in a word.  */
     65   32, 		/* 32 bits in an address.  */
     66   8,  		/* 8 bits in a byte.  */
     67   bfd_arch_i370,
     68   0,		/* For the 360/370 common architecture.  */
     69   "i370",
     70   "i370:common",
     71   3,
     72   TRUE, 	/* The default.  */
     73   bfd_default_compatible,
     74   bfd_default_scan,
     75   bfd_arch_default_fill,
     76   & arch_info_struct[0]
     77 };
     78