xref: /netbsd/external/gpl3/gdb/dist/bfd/cpu-d10v.c (revision 1424dfb3)
1377e23a2Schristos /* BFD support for the D10V processor
2*1424dfb3Schristos    Copyright (C) 1996-2020 Free Software Foundation, Inc.
3377e23a2Schristos    Contributed by Martin Hunt (hunt@cygnus.com).
4377e23a2Schristos 
5377e23a2Schristos    This file is part of BFD, the Binary File Descriptor library.
6377e23a2Schristos 
7377e23a2Schristos    This program is free software; you can redistribute it and/or modify
8377e23a2Schristos    it under the terms of the GNU General Public License as published by
9377e23a2Schristos    the Free Software Foundation; either version 3 of the License, or
10377e23a2Schristos    (at your option) any later version.
11377e23a2Schristos 
12377e23a2Schristos    This program is distributed in the hope that it will be useful,
13377e23a2Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
14377e23a2Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15377e23a2Schristos    GNU General Public License for more details.
16377e23a2Schristos 
17377e23a2Schristos    You should have received a copy of the GNU General Public License
18377e23a2Schristos    along with this program; if not, write to the Free Software
19377e23a2Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20377e23a2Schristos    MA 02110-1301, USA.  */
21377e23a2Schristos 
22377e23a2Schristos #include "sysdep.h"
23377e23a2Schristos #include "bfd.h"
24377e23a2Schristos #include "libbfd.h"
25377e23a2Schristos 
26*1424dfb3Schristos #define N(NUMBER, PRINT, DEFAULT, NEXT)			\
27*1424dfb3Schristos   {							\
28*1424dfb3Schristos     16,         /* Bits in a word.  */			\
29*1424dfb3Schristos     18,         /* Bits in an address.  */		\
30*1424dfb3Schristos     8,	        /* Bits in a byte.  */			\
31*1424dfb3Schristos     bfd_arch_d10v,					\
32*1424dfb3Schristos     NUMBER,						\
33*1424dfb3Schristos     "d10v",						\
34*1424dfb3Schristos     PRINT,						\
35*1424dfb3Schristos     4,		/* Section alignment power.  */		\
36*1424dfb3Schristos     DEFAULT,						\
37*1424dfb3Schristos     bfd_default_compatible,				\
38*1424dfb3Schristos     bfd_default_scan,					\
39*1424dfb3Schristos     bfd_arch_default_fill,				\
40*1424dfb3Schristos     NEXT,						\
41*1424dfb3Schristos     0 /* Maximum offset of a reloc from the start of an insn.  */ \
42*1424dfb3Schristos   }
43*1424dfb3Schristos 
44377e23a2Schristos static const bfd_arch_info_type d10v_ts3_info =
45*1424dfb3Schristos   N (bfd_mach_d10v_ts3, "d10v:ts3", FALSE, NULL);
46377e23a2Schristos 
47377e23a2Schristos static const bfd_arch_info_type d10v_ts2_info =
48*1424dfb3Schristos   N (bfd_mach_d10v_ts2, "d10v:ts2", FALSE, & d10v_ts3_info);
49377e23a2Schristos 
50377e23a2Schristos const bfd_arch_info_type bfd_d10v_arch =
51*1424dfb3Schristos   N (bfd_mach_d10v, "d10v", TRUE, & d10v_ts2_info);
52