1*3d8817e4Smiod /* BFD support for the D10V processor 2*3d8817e4Smiod Copyright 1996, 1999, 2000, 2002, 2005 Free Software Foundation, Inc. 3*3d8817e4Smiod Contributed by Martin Hunt (hunt@cygnus.com). 4*3d8817e4Smiod 5*3d8817e4Smiod This file is part of BFD, the Binary File Descriptor library. 6*3d8817e4Smiod 7*3d8817e4Smiod This program is free software; you can redistribute it and/or modify 8*3d8817e4Smiod it under the terms of the GNU General Public License as published by 9*3d8817e4Smiod the Free Software Foundation; either version 2 of the License, or 10*3d8817e4Smiod (at your option) any later version. 11*3d8817e4Smiod 12*3d8817e4Smiod This program is distributed in the hope that it will be useful, 13*3d8817e4Smiod but WITHOUT ANY WARRANTY; without even the implied warranty of 14*3d8817e4Smiod MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*3d8817e4Smiod GNU General Public License for more details. 16*3d8817e4Smiod 17*3d8817e4Smiod You should have received a copy of the GNU General Public License 18*3d8817e4Smiod along with this program; if not, write to the Free Software 19*3d8817e4Smiod Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 20*3d8817e4Smiod MA 02110-1301, USA. */ 21*3d8817e4Smiod 22*3d8817e4Smiod #include "bfd.h" 23*3d8817e4Smiod #include "sysdep.h" 24*3d8817e4Smiod #include "libbfd.h" 25*3d8817e4Smiod 26*3d8817e4Smiod static const bfd_arch_info_type d10v_ts3_info = 27*3d8817e4Smiod { 28*3d8817e4Smiod 16, /* 16 bits in a word. */ 29*3d8817e4Smiod 16, /* 16 bits in an address. */ 30*3d8817e4Smiod 8, /* 8 bits in a byte. */ 31*3d8817e4Smiod bfd_arch_d10v, 32*3d8817e4Smiod bfd_mach_d10v_ts3, 33*3d8817e4Smiod "d10v", 34*3d8817e4Smiod "d10v:ts3", 35*3d8817e4Smiod 4, /* Section alignment power. */ 36*3d8817e4Smiod FALSE, 37*3d8817e4Smiod bfd_default_compatible, 38*3d8817e4Smiod bfd_default_scan, 39*3d8817e4Smiod 0, 40*3d8817e4Smiod }; 41*3d8817e4Smiod 42*3d8817e4Smiod static const bfd_arch_info_type d10v_ts2_info = 43*3d8817e4Smiod { 44*3d8817e4Smiod 16, /* 16 bits in a word. */ 45*3d8817e4Smiod 16, /* 16 bits in an address. */ 46*3d8817e4Smiod 8, /* 8 bits in a byte. */ 47*3d8817e4Smiod bfd_arch_d10v, 48*3d8817e4Smiod bfd_mach_d10v_ts2, 49*3d8817e4Smiod "d10v", 50*3d8817e4Smiod "d10v:ts2", 51*3d8817e4Smiod 4, /* Section alignment power. */ 52*3d8817e4Smiod FALSE, 53*3d8817e4Smiod bfd_default_compatible, 54*3d8817e4Smiod bfd_default_scan, 55*3d8817e4Smiod & d10v_ts3_info, 56*3d8817e4Smiod }; 57*3d8817e4Smiod 58*3d8817e4Smiod const bfd_arch_info_type bfd_d10v_arch = 59*3d8817e4Smiod { 60*3d8817e4Smiod 16, /* 16 bits in a word. */ 61*3d8817e4Smiod 16, /* 16 bits in an address. */ 62*3d8817e4Smiod 8, /* 8 bits in a byte. */ 63*3d8817e4Smiod bfd_arch_d10v, 64*3d8817e4Smiod bfd_mach_d10v, 65*3d8817e4Smiod "d10v", 66*3d8817e4Smiod "d10v", 67*3d8817e4Smiod 4, /* Section alignment power. */ 68*3d8817e4Smiod TRUE, 69*3d8817e4Smiod bfd_default_compatible, 70*3d8817e4Smiod bfd_default_scan, 71*3d8817e4Smiod & d10v_ts2_info, 72*3d8817e4Smiod }; 73