cpu-d10v.c 1.8 KB

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