197403Sobrien/* BFD support for the Scenix IP2xxx processor. 297403Sobrien Copyright (C) 2000-2022 Free Software Foundation, Inc. 3117397Skan 497403Sobrien This file is part of BFD, the Binary File Descriptor library. 597403Sobrien 697403Sobrien This program is free software; you can redistribute it and/or modify 797403Sobrien it under the terms of the GNU General Public License as published by 897403Sobrien the Free Software Foundation; either version 3 of the License, or 997403Sobrien (at your option) any later version. 1097403Sobrien 1197403Sobrien This program is distributed in the hope that it will be useful, 1297403Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1397403Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1497403Sobrien GNU General Public License for more details. 1597403Sobrien 1697403Sobrien You should have received a copy of the GNU General Public License 1797403Sobrien along with this program; if not, write to the Free Software 18169691Skan Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 1997403Sobrien MA 02110-1301, USA. */ 2097403Sobrien 2197403Sobrien#include "sysdep.h" 2297403Sobrien#include "bfd.h" 2397403Sobrien#include "libbfd.h" 2497403Sobrien 2597403Sobrien#define N(NUMBER, PRINT, DEFAULT, NEXT) \ 2697403Sobrien { \ 2797403Sobrien 32, /* Bits in a word. */ \ 2897403Sobrien 16, /* Bits in an address. */ \ 2997403Sobrien 8, /* Bits in a byte. */ \ 3097403Sobrien bfd_arch_ip2k, \ 3197403Sobrien NUMBER, \ 3297403Sobrien "ip2k", \ 3397403Sobrien PRINT, \ 3497403Sobrien 1, /* Section alignment power. */ \ 35169691Skan DEFAULT, \ 3697403Sobrien bfd_default_compatible, \ 3797403Sobrien bfd_default_scan, \ 38132720Skan bfd_arch_default_fill, \ 39132720Skan NEXT, \ 4097403Sobrien 0 /* Maximum offset of a reloc from the start of an insn. */ \ 4197403Sobrien } 4297403Sobrien 4397403Sobrienconst bfd_arch_info_type bfd_ip2k_nonext_arch = 44117397Skan N (bfd_mach_ip2022, "ip2022", false, NULL); 4597403Sobrien 4697403Sobrienconst bfd_arch_info_type bfd_ip2k_arch = 4797403Sobrien N (bfd_mach_ip2022ext, "ip2022ext", true, & bfd_ip2k_nonext_arch); 48132720Skan 49