xref: /netbsd-src/external/gpl3/binutils/dist/bfd/cpu-tilegx.c (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
1883529b6Schristos /* BFD support for the TILE-Gx processor.
2*cb63e24eSchristos    Copyright (C) 2011-2024 Free Software Foundation, Inc.
3883529b6Schristos 
4883529b6Schristos    This file is part of BFD, the Binary File Descriptor library.
5883529b6Schristos 
6883529b6Schristos    This program is free software; you can redistribute it and/or modify
7883529b6Schristos    it under the terms of the GNU General Public License as published by
8883529b6Schristos    the Free Software Foundation; either version 3 of the License, or
9883529b6Schristos    (at your option) any later version.
10883529b6Schristos 
11883529b6Schristos    This program is distributed in the hope that it will be useful,
12883529b6Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
13883529b6Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14883529b6Schristos    GNU General Public License for more details.
15883529b6Schristos 
16883529b6Schristos    You should have received a copy of the GNU General Public License
17883529b6Schristos    along with this program; if not, write to the Free Software
18883529b6Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19883529b6Schristos    MA 02110-1301, USA.  */
20883529b6Schristos 
21883529b6Schristos #include "sysdep.h"
22883529b6Schristos #include "bfd.h"
23883529b6Schristos #include "libbfd.h"
24883529b6Schristos 
256f4ced0bSchristos #define N(BITS, NUMBER, PRINT, DEFAULT, NEXT)		\
266f4ced0bSchristos   {							\
276f4ced0bSchristos     BITS,      /* Bits in a word.  */			\
286f4ced0bSchristos     BITS,      /* Bits in an address.  */		\
296f4ced0bSchristos     8,	       /* Bits in a byte.  */			\
306f4ced0bSchristos     bfd_arch_tilegx,					\
316f4ced0bSchristos     NUMBER,						\
326f4ced0bSchristos     "tilegx",						\
336f4ced0bSchristos     PRINT,						\
346f4ced0bSchristos     3,		/* Section alignment power.  */		\
356f4ced0bSchristos     DEFAULT,						\
366f4ced0bSchristos     bfd_default_compatible,				\
376f4ced0bSchristos     bfd_default_scan,					\
386f4ced0bSchristos     bfd_arch_default_fill,				\
396f4ced0bSchristos     NEXT,						\
406f4ced0bSchristos     0 /* Maximum offset of a reloc from the start of an insn.  */ \
416f4ced0bSchristos   }
426f4ced0bSchristos 
43883529b6Schristos const bfd_arch_info_type bfd_tilegx32_arch =
444f645668Schristos   N (32, bfd_mach_tilegx32, "tilegx32", false, NULL);
45883529b6Schristos 
46883529b6Schristos const bfd_arch_info_type bfd_tilegx_arch =
474f645668Schristos   N (64, bfd_mach_tilegx, "tilegx", true, &bfd_tilegx32_arch);
486f4ced0bSchristos 
49