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