Back to index

cell-binutils  2.17cvs20070401
cpu-spu.c
Go to the documentation of this file.
00001 /* Copyright 2006 Free Software Foundation, Inc.
00002 
00003    This file is part of BFD, the Binary File Descriptor library.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2 of the License, or
00008    (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License along
00016    with this program; if not, write to the Free Software Foundation, Inc.,
00017    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00018 
00019 #include "bfd.h"
00020 #include "sysdep.h"
00021 #include "libbfd.h"
00022 
00023 
00024 static const bfd_arch_info_type *
00025 spu_compatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b)
00026 {
00027   BFD_ASSERT (a->arch == bfd_arch_spu);
00028   switch (b->arch)
00029     {
00030     default:
00031       return NULL;
00032     case bfd_arch_spu:
00033       return bfd_default_compatible (a, b);
00034     }
00035   /*NOTREACHED*/
00036 }
00037 
00038 const bfd_arch_info_type bfd_spu_arch[] =
00039 {
00040   {
00041     32,       /* 32 bits in a word */
00042     32,       /* 32 bits in an address */
00043     8, /* 8 bits in a byte */
00044     bfd_arch_spu,    /* architecture */
00045     bfd_mach_spu,    /* machine */
00046     "spu",           /* architecture name */
00047     "spu:256K",             /* printable name */
00048     3,               /* aligned power */
00049     TRUE,            /* the default machine for the architecture */
00050     spu_compatible,  /* the spu is only compatible with itself, see above */
00051     bfd_default_scan,
00052     0,               /* next -- there are none! */
00053   }
00054 };