xref: /netbsd-src/external/gpl3/binutils/dist/bfd/cpu-lm32.c (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
131799520Schristos /* BFD support for the Lattice Mico32 architecture.
2*cb63e24eSchristos    Copyright (C) 2008-2024 Free Software Foundation, Inc.
331799520Schristos    Contributed by Jon Beniston <jon@beniston.com>
431799520Schristos 
531799520Schristos    This file is part of BFD, the Binary File Descriptor library.
631799520Schristos 
731799520Schristos    This program is free software; you can redistribute it and/or modify
831799520Schristos    it under the terms of the GNU General Public License as published by
931799520Schristos    the Free Software Foundation; either version 3 of the License, or
1031799520Schristos    (at your option) any later version.
1131799520Schristos 
1231799520Schristos    This program is distributed in the hope that it will be useful,
1331799520Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1431799520Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1531799520Schristos    GNU General Public License for more details.
1631799520Schristos 
1731799520Schristos    You should have received a copy of the GNU General Public License
1831799520Schristos    along with this program; if not, write to the Free Software
1931799520Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
2031799520Schristos    MA 02110-1301, USA.  */
2131799520Schristos 
2231799520Schristos #include "sysdep.h"
23883529b6Schristos #include "bfd.h"
2431799520Schristos #include "libbfd.h"
2531799520Schristos 
2631799520Schristos const bfd_arch_info_type bfd_lm32_arch =
2731799520Schristos {
2831799520Schristos   32,			  /* Bits in word.  */
2931799520Schristos   32,			  /* Bits in address.  */
3031799520Schristos   8,			  /* Bits in byte.  */
3131799520Schristos   bfd_arch_lm32,	  /* Enum bfd_architecture.  */
3231799520Schristos   bfd_mach_lm32,	  /* Machine number.  */
3331799520Schristos   "lm32",		  /* Architecture name.  */
3431799520Schristos   "lm32",		  /* Printable name.  */
3531799520Schristos   4,			  /* Alignment.  */
364f645668Schristos   true,			  /* Is this the default machine for the target.  */
3731799520Schristos   bfd_default_compatible, /* Function callback to test if two files have compatible machines.  */
3831799520Schristos   bfd_default_scan,
39883529b6Schristos   bfd_arch_default_fill,
406f4ced0bSchristos   NULL,			  /* Next.  */
416f4ced0bSchristos   0 			  /* Maximum offset of a reloc from the start of an insn.  */
4231799520Schristos };
43