xref: /netbsd-src/external/gpl3/binutils.old/dist/bfd/cpu-pru.c (revision c42dbd0ed2e61fe6eda8590caa852ccf34719964)
1e6c7e151Schristos /* BFD support for the TI PRU microprocessor.
2*c42dbd0eSchristos    Copyright (C) 2014-2022 Free Software Foundation, Inc.
3e6c7e151Schristos    Contributed by Dimitar Dimitrov <dimitar@dinux.eu>
4e6c7e151Schristos 
5e6c7e151Schristos    This file is part of BFD, the Binary File Descriptor library.
6e6c7e151Schristos 
7e6c7e151Schristos    This program is free software; you can redistribute it and/or modify
8e6c7e151Schristos    it under the terms of the GNU General Public License as published by
9e6c7e151Schristos    the Free Software Foundation; either version 3 of the License, or
10e6c7e151Schristos    (at your option) any later version.
11e6c7e151Schristos 
12e6c7e151Schristos    This program is distributed in the hope that it will be useful,
13e6c7e151Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
14e6c7e151Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15e6c7e151Schristos    GNU General Public License for more details.
16e6c7e151Schristos 
17e6c7e151Schristos    You should have received a copy of the GNU General Public License
18e6c7e151Schristos    along with this program; if not, write to the Free Software
19e6c7e151Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20e6c7e151Schristos    MA 02110-1301, USA.  */
21e6c7e151Schristos 
22e6c7e151Schristos #include "sysdep.h"
23e6c7e151Schristos #include "bfd.h"
24e6c7e151Schristos #include "libbfd.h"
25e6c7e151Schristos 
26e6c7e151Schristos #define N(BITS_WORD, BITS_ADDR, NUMBER, PRINT, DEFAULT, NEXT)		\
27e6c7e151Schristos   {							\
28e6c7e151Schristos     BITS_WORD, /*  bits in a word */			\
29e6c7e151Schristos     BITS_ADDR, /* bits in an address */			\
30e6c7e151Schristos     8,	/* 8 bits in a byte */				\
31e6c7e151Schristos     bfd_arch_pru,					\
32e6c7e151Schristos     NUMBER,						\
33e6c7e151Schristos     "pru",						\
34e6c7e151Schristos     PRINT,						\
35e6c7e151Schristos     3,							\
36e6c7e151Schristos     DEFAULT,						\
37e6c7e151Schristos     bfd_default_compatible,				\
38e6c7e151Schristos     bfd_default_scan,					\
39e6c7e151Schristos     bfd_arch_default_fill,				\
40867d70fcSchristos     NEXT,						\
41867d70fcSchristos     0 /* Maximum offset of a reloc from the start of an insn.  */ \
42e6c7e151Schristos   }
43e6c7e151Schristos 
44*c42dbd0eSchristos const bfd_arch_info_type bfd_pru_arch = N (32, 32, 0, "pru", true, NULL);
45