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