cpu-xc16x.c 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* BFD support for the Infineon XC16X Microcontroller.
  2. Copyright (C) 2006-2015 Free Software Foundation, Inc.
  3. Contributed by KPIT Cummins Infosystems
  4. This file is part of BFD, the Binary File Descriptor library.
  5. Contributed by Anil Paranjpe(anilp1@kpitcummins.com)
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
  17. 02110-1301, USA. */
  18. #include "sysdep.h"
  19. #include "bfd.h"
  20. #include "libbfd.h"
  21. const bfd_arch_info_type xc16xs_info_struct =
  22. {
  23. 16, /* Bits per word. */
  24. 16, /* Bits per address. */
  25. 8, /* Bits per byte. */
  26. bfd_arch_xc16x, /* Architecture. */
  27. bfd_mach_xc16xs, /* Machine. */
  28. "xc16x", /* Architecture name. */
  29. "xc16xs", /* Printable name. */
  30. 1, /* Section alignment - 16 bit. */
  31. TRUE, /* The default ? */
  32. bfd_default_compatible, /* Architecture comparison fn. */
  33. bfd_default_scan, /* String to architecture convert fn. */
  34. bfd_arch_default_fill, /* Default fill. */
  35. NULL /* Next in list. */
  36. };
  37. const bfd_arch_info_type xc16xl_info_struct =
  38. {
  39. 16, /* Bits per word. */
  40. 32, /* Bits per address. */
  41. 8, /* Bits per byte. */
  42. bfd_arch_xc16x, /* Architecture. */
  43. bfd_mach_xc16xl, /* Machine. */
  44. "xc16x", /* Architecture name. */
  45. "xc16xl", /* Printable name. */
  46. 1, /* Section alignment - 16 bit. */
  47. TRUE, /* The default ? */
  48. bfd_default_compatible, /* Architecture comparison fn. */
  49. bfd_default_scan, /* String to architecture convert fn. */
  50. bfd_arch_default_fill, /* Default fill. */
  51. & xc16xs_info_struct /* Next in list. */
  52. };
  53. const bfd_arch_info_type bfd_xc16x_arch =
  54. {
  55. 16, /* Bits per word. */
  56. 16, /* Bits per address. */
  57. 8, /* Bits per byte. */
  58. bfd_arch_xc16x, /* Architecture. */
  59. bfd_mach_xc16x, /* Machine. */
  60. "xc16x", /* Architecture name. */
  61. "xc16x", /* Printable name. */
  62. 1, /* Section alignment - 16 bit. */
  63. TRUE, /* The default ? */
  64. bfd_default_compatible, /* Architecture comparison fn. */
  65. bfd_default_scan, /* String to architecture convert fn. */
  66. bfd_arch_default_fill, /* Default fill. */
  67. & xc16xl_info_struct /* Next in list. */
  68. };