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