Back to index

cell-binutils  2.17cvs20070401
cpu-alpha.c
Go to the documentation of this file.
00001 /* BFD support for the Alpha architecture.
00002    Copyright 1992, 1993, 1998, 2000, 2002, 2003
00003    Free Software Foundation, Inc.
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_alpha,                              \
00031     NUMBER,                                      \
00032     "alpha",                                     \
00033     PRINT,                                       \
00034     3,                                           \
00035     DEFAULT,                                     \
00036     bfd_default_compatible,                             \
00037     bfd_default_scan,                                   \
00038     NEXT,                                        \
00039   }
00040 
00041 #define NN(index) (&arch_info_struct[index])
00042 
00043 /* These exist only so that we can reasonably disassemble PALcode.  */
00044 static const bfd_arch_info_type arch_info_struct[] =
00045 {
00046   N (64, 64, bfd_mach_alpha_ev4, "alpha:ev4", FALSE, NN(1)),
00047   N (64, 64, bfd_mach_alpha_ev5, "alpha:ev5", FALSE, NN(2)),
00048   N (64, 64, bfd_mach_alpha_ev6, "alpha:ev6", FALSE, 0),
00049 };
00050 
00051 const bfd_arch_info_type bfd_alpha_arch =
00052   N (64, 64, 0, "alpha", TRUE, NN(0));