Back to index

cell-binutils  2.17cvs20070401
cpu-h8500.c
Go to the documentation of this file.
00001 /* BFD library support routines for the H8/500 architecture.
00002    Copyright 1993, 1995, 1999, 2000, 2001, 2002, 2003, 2005
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 static bfd_boolean scan_mach
00027   PARAMS ((const struct bfd_arch_info *, const char *));
00028 
00029 static bfd_boolean
00030 scan_mach (info, string)
00031      const struct bfd_arch_info *info ATTRIBUTE_UNUSED;
00032      const char *string;
00033 {
00034   if (strcmp (string,"h8/500") == 0)
00035     return TRUE;
00036   if (strcmp (string,"H8/500") == 0)
00037     return TRUE;
00038   if (strcmp (string,"h8500") == 0)
00039     return TRUE;
00040   if (strcmp (string,"H8500") == 0)
00041     return TRUE;
00042   return FALSE;
00043 }
00044 
00045 const bfd_arch_info_type bfd_h8500_arch =
00046 {
00047   16,                       /* 16 bits in a word */
00048   24,                       /* 24 bits in an address */
00049   8,                        /* 8 bits in a byte */
00050   bfd_arch_h8500,
00051   0,                        /* only 1 machine */
00052   "h8500",                  /* arch_name  */
00053   "h8500",                  /* printable name */
00054   1,
00055   TRUE,                            /* the default machine */
00056   bfd_default_compatible,
00057   scan_mach,
00058   0,
00059 };