Back to index

cell-binutils  2.17cvs20070401
cpu-frv.c
Go to the documentation of this file.
00001 /* BFD support for the FRV processor.
00002    Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
00003 
00004 This file is part of BFD, the Binary File Descriptor library.
00005 
00006 This program is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 This program is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with this program; if not, write to the Free Software
00018 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00019 
00020 #include "bfd.h"
00021 #include "sysdep.h"
00022 #include "libbfd.h"
00023 
00024 #define FRV_ARCH(MACHINE, NAME, DEFAULT, NEXT)                        \
00025 {                                                              \
00026   32,                          /* 32 bits in a word */                \
00027   32,                          /* 32 bits in an address */            \
00028   8,                           /* 8 bits in a byte */                 \
00029   bfd_arch_frv,                    /* architecture */                 \
00030   MACHINE,                  /* which machine */                \
00031   "frv",                    /* architecture name */                   \
00032   NAME,                            /* machine name */                 \
00033   4,                        /* default alignment */                   \
00034   DEFAULT,                  /* is this the default? */         \
00035   bfd_default_compatible,   /* architecture comparison fn */   \
00036   bfd_default_scan,         /* string to architecture convert fn */   \
00037   NEXT                      /* next in list */                 \
00038 }
00039 
00040 static const bfd_arch_info_type arch_info_300
00041   = FRV_ARCH (bfd_mach_fr300,   "fr300",   FALSE, (bfd_arch_info_type *)0);
00042 
00043 static const bfd_arch_info_type arch_info_400
00044   = FRV_ARCH (bfd_mach_fr400, "fr400", FALSE, &arch_info_300);
00045 
00046 static const bfd_arch_info_type arch_info_450
00047   = FRV_ARCH (bfd_mach_fr450, "fr450", FALSE, &arch_info_400);
00048 
00049 static const bfd_arch_info_type arch_info_500
00050   = FRV_ARCH (bfd_mach_fr500, "fr500", FALSE, &arch_info_450);
00051 
00052 static const bfd_arch_info_type arch_info_550
00053   = FRV_ARCH (bfd_mach_fr550, "fr550", FALSE, &arch_info_500);
00054 
00055 static const bfd_arch_info_type arch_info_simple
00056   = FRV_ARCH (bfd_mach_frvsimple, "simple", FALSE, &arch_info_550);
00057 
00058 static const bfd_arch_info_type arch_info_tomcat
00059   = FRV_ARCH (bfd_mach_frvtomcat, "tomcat", FALSE, &arch_info_simple);
00060 
00061 const bfd_arch_info_type bfd_frv_arch
00062   = FRV_ARCH (bfd_mach_frv, "frv", TRUE, &arch_info_tomcat);
00063