Back to index

cell-binutils  2.17cvs20070401
cpu-openrisc.c
Go to the documentation of this file.
00001 /* BFD support for the OpenRISC architecture.
00002    Copyright 2001, 2002 Free Software Foundation, Inc.
00003    Contributed by Johan Rydberg, jrydberg@opencores.org
00004 
00005 This file is part of BFD, the Binary File Descriptor library.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #include "bfd.h"
00022 #include "sysdep.h"
00023 #include "libbfd.h"
00024 
00025 #define N(BITS_WORD, BITS_ADDR, NUMBER, PRINT, DEFAULT, NEXT) \
00026   {                                                           \
00027     BITS_WORD,           /* bits in a word */                 \
00028     BITS_ADDR,           /* bits in an address */             \
00029     8,                   /* 8 bits in a byte */               \
00030     bfd_arch_openrisc,                                        \
00031     NUMBER,                                                   \
00032     "openrisc",                                               \
00033     PRINT,                                                    \
00034     2,                                                        \
00035     DEFAULT,                                                  \
00036     bfd_default_compatible,                                   \
00037     bfd_default_scan,                                         \
00038     NEXT,                                                     \
00039   }
00040 
00041 const bfd_arch_info_type bfd_openrisc_arch =
00042   N (32, 32, 0, "openrisc", TRUE, 0);