1214571Sdim/* Copyright 2006, 2007 Free Software Foundation, Inc. 2214571Sdim 3214571Sdim This file is part of BFD, the Binary File Descriptor library. 4214571Sdim 5214571Sdim This program is free software; you can redistribute it and/or modify 6214571Sdim it under the terms of the GNU General Public License as published by 7214571Sdim the Free Software Foundation; either version 2 of the License, or 8214571Sdim (at your option) any later version. 9214571Sdim 10214571Sdim This program is distributed in the hope that it will be useful, 11214571Sdim but WITHOUT ANY WARRANTY; without even the implied warranty of 12214571Sdim MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13214571Sdim GNU General Public License for more details. 14214571Sdim 15214571Sdim You should have received a copy of the GNU General Public License along 16214571Sdim with this program; if not, write to the Free Software Foundation, Inc., 17214571Sdim 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 18214571Sdim 19214571Sdim#include "sysdep.h" 20214571Sdim#include "bfd.h" 21214571Sdim#include "libbfd.h" 22214571Sdim 23214571Sdim 24214571Sdimstatic const bfd_arch_info_type * 25214571Sdimspu_compatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b) 26214571Sdim{ 27214571Sdim BFD_ASSERT (a->arch == bfd_arch_spu); 28214571Sdim switch (b->arch) 29214571Sdim { 30214571Sdim default: 31214571Sdim return NULL; 32214571Sdim case bfd_arch_spu: 33214571Sdim return bfd_default_compatible (a, b); 34214571Sdim } 35214571Sdim /*NOTREACHED*/ 36214571Sdim} 37214571Sdim 38214571Sdimconst bfd_arch_info_type bfd_spu_arch[] = 39214571Sdim{ 40214571Sdim { 41214571Sdim 32, /* 32 bits in a word */ 42214571Sdim 32, /* 32 bits in an address */ 43214571Sdim 8, /* 8 bits in a byte */ 44214571Sdim bfd_arch_spu, /* architecture */ 45214571Sdim bfd_mach_spu, /* machine */ 46214571Sdim "spu", /* architecture name */ 47214571Sdim "spu:256K", /* printable name */ 48214571Sdim 3, /* aligned power */ 49214571Sdim TRUE, /* the default machine for the architecture */ 50214571Sdim spu_compatible, /* the spu is only compatible with itself, see above */ 51214571Sdim bfd_default_scan, 52214571Sdim 0, /* next -- there are none! */ 53214571Sdim } 54214571Sdim}; 55