Back to index

cell-binutils  2.17cvs20070401
cpu-z8k.c
Go to the documentation of this file.
00001 /* BFD library support routines for the Z800n architecture.
00002    Copyright 1992, 1993, 1994, 2000, 2001, 2002, 2003
00003    Free Software Foundation, Inc.
00004    Hacked by Steve Chamberlain of Cygnus Support.
00005 
00006 This file is part of BFD, the Binary File Descriptor library.
00007 
00008 This program is free software; you can redistribute it and/or modify
00009 it under the terms of the GNU General Public License as published by
00010 the Free Software Foundation; either version 2 of the License, or
00011 (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 GNU General Public License for more details.
00017 
00018 You should have received a copy of the GNU General Public License
00019 along with this program; if not, write to the Free Software
00020 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00021 
00022 #include "bfd.h"
00023 #include "sysdep.h"
00024 #include "libbfd.h"
00025 
00026 /* This routine is provided two arch_infos and returns whether
00027    they'd be compatible */
00028 
00029 static const bfd_arch_info_type *
00030 compatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b)
00031 {
00032   if (a->arch != b->arch || a->mach != b->mach)
00033     return NULL;
00034   return a;
00035 }
00036 
00037 static const bfd_arch_info_type arch_info_struct[] =
00038 {
00039   { 32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, FALSE,
00040     compatible, bfd_default_scan, 0 }
00041 };
00042 
00043 const bfd_arch_info_type bfd_z8k_arch =
00044 {
00045   32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, TRUE,
00046   compatible, bfd_default_scan, &arch_info_struct[0]
00047 };