xref: /netbsd-src/external/gpl3/binutils.old/dist/bfd/cpu-v850_rh850.c (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos /* BFD support for the NEC V850 processor with the RH850 ABI.
2*e992f068Schristos    Copyright (C) 2012-2022 Free Software Foundation, Inc.
375fd0b74Schristos 
475fd0b74Schristos    This file is part of BFD, the Binary File Descriptor library.
575fd0b74Schristos 
675fd0b74Schristos    This program is free software; you can redistribute it and/or modify
775fd0b74Schristos    it under the terms of the GNU General Public License as published by
875fd0b74Schristos    the Free Software Foundation; either version 3 of the License, or
975fd0b74Schristos    (at your option) any later version.
1075fd0b74Schristos 
1175fd0b74Schristos    This program is distributed in the hope that it will be useful,
1275fd0b74Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1375fd0b74Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1475fd0b74Schristos    GNU General Public License for more details.
1575fd0b74Schristos 
1675fd0b74Schristos    You should have received a copy of the GNU General Public License
1775fd0b74Schristos    along with this program; if not, write to the Free Software
1875fd0b74Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
1975fd0b74Schristos    MA 02110-1301, USA.  */
2075fd0b74Schristos 
2175fd0b74Schristos #include "sysdep.h"
2275fd0b74Schristos #include "bfd.h"
2375fd0b74Schristos #include "libbfd.h"
2475fd0b74Schristos #include "safe-ctype.h"
2575fd0b74Schristos 
2675fd0b74Schristos #define R(number, print, default, next)  \
2775fd0b74Schristos  { 32, 32, 8, bfd_arch_v850_rh850, number, "v850", print, 2, default, \
28012573ebSchristos    bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, next, 0 }
2975fd0b74Schristos 
3075fd0b74Schristos static const bfd_arch_info_type arch_info_struct[] =
3175fd0b74Schristos {
32*e992f068Schristos   R (bfd_mach_v850e3v5, "v850e3v5",	false, & arch_info_struct[1]),
33*e992f068Schristos   R (bfd_mach_v850e3v5, "v850e2v4",	false, & arch_info_struct[2]),
34*e992f068Schristos   R (bfd_mach_v850e2v3, "v850e2v3",	false, & arch_info_struct[3]),
35*e992f068Schristos   R (bfd_mach_v850e2,	"v850e2",	false, & arch_info_struct[4]),
36*e992f068Schristos   R (bfd_mach_v850e1,	"v850e1",	false, & arch_info_struct[5]),
37*e992f068Schristos   R (bfd_mach_v850e,	"v850e",	false, & arch_info_struct[6]),
38*e992f068Schristos   R (bfd_mach_v850,	"v850-rh850",	false, NULL) /* For backwards compatibility.  */
3975fd0b74Schristos };
4075fd0b74Schristos 
4175fd0b74Schristos const bfd_arch_info_type bfd_v850_rh850_arch =
42*e992f068Schristos   R (bfd_mach_v850,	"v850:rh850",	true,  & arch_info_struct[0]);
43