diff options
author | Michael Tiemann <tiemann@cygnus> | 1994-11-25 00:01:26 +0000 |
---|---|---|
committer | Michael Tiemann <tiemann@cygnus> | 1994-11-25 00:01:26 +0000 |
commit | 03c4ce2fcc3582e65cfe2ec336769074a80f3146 (patch) | |
tree | 9b562805138500c7ec159ab177f2d90c3ba0425d /bfd/cpu-rce.c | |
parent | 5fa60968605904d23a6ce37901c9710295baf0b0 (diff) | |
download | fsf-binutils-gdb-03c4ce2fcc3582e65cfe2ec336769074a80f3146.zip fsf-binutils-gdb-03c4ce2fcc3582e65cfe2ec336769074a80f3146.tar.gz fsf-binutils-gdb-03c4ce2fcc3582e65cfe2ec336769074a80f3146.tar.bz2 |
Rename r16 files to rce, and fix some more .Sanitize typos.
Diffstat (limited to 'bfd/cpu-rce.c')
-rw-r--r-- | bfd/cpu-rce.c | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/bfd/cpu-rce.c b/bfd/cpu-rce.c new file mode 100644 index 0000000..3300b0a --- /dev/null +++ b/bfd/cpu-rce.c @@ -0,0 +1,79 @@ +/* BFD library support routines for the Experiment SOP architecture. + Copyright (C) 1993 Free Software Foundation, Inc. + +This file is part of BFD, the Binary File Descriptor library. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "bfd.h" +#include "sysdep.h" +#include "libbfd.h" + + +int bfd_default_scan_num_mach(); + +static boolean +DEFUN(scan_mach,(info, string), +CONST struct bfd_arch_info *info AND +CONST char *string) +{ + if (strcmp(string,"sop") == 0) return true; + if (strcmp(string,"SOP") == 0) return true; + return false; +} + + +#if 0 +/* This routine is provided two arch_infos and returns whether + they'd be compatible */ + +static CONST bfd_arch_info_type * +DEFUN(compatible,(a,b), + CONST bfd_arch_info_type *a AND + CONST bfd_arch_info_type *b) +{ + if (a->arch != b->arch || a->mach != b->mach) + return NULL; + return a; +} +#endif + +static bfd_arch_info_type arch_info_struct[] = +{ + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_rce, + 0, /* only 1 machine */ + "SOP", /* arch_name */ + "SOP", /* printable name */ + 1, + true, /* the default machine */ + bfd_default_compatible, + scan_mach, + 0, + 0, + }, +}; + + + +void +DEFUN_VOID(bfd_sop_arch) +{ + bfd_arch_linkin(&arch_info_struct[0]); +} + |