cpu-epiphany.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* BFD support for the Adapteva EPIPHANY processor.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. Contributed by Embecosm on behalf of Adapteva, Inc.
  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. const bfd_arch_info_type bfd_epiphany16_arch =
  21. {
  22. 32, /* Bits per word */
  23. 32, /* Bits per address. */
  24. 8, /* Bits per byte. */
  25. bfd_arch_epiphany, /* Architecture. */
  26. bfd_mach_epiphany16, /* Machine. */
  27. "epiphany", /* Architecture name. */
  28. "epiphany16", /* Machine name. */
  29. 1, /* Section align power. */
  30. FALSE, /* The default ? */
  31. bfd_default_compatible, /* Architecture comparison fn. */
  32. bfd_default_scan, /* String to architecture convert fn. */
  33. bfd_arch_default_fill, /* Default fill. */
  34. NULL /* Next in list. */
  35. };
  36. const bfd_arch_info_type bfd_epiphany_arch =
  37. {
  38. 32, /* Bits per word - not really true. */
  39. 32, /* Bits per address. */
  40. 8, /* Bits per byte. */
  41. bfd_arch_epiphany, /* Architecture. */
  42. bfd_mach_epiphany32, /* Machine. */
  43. "epiphany", /* Architecture name. */
  44. "epiphany32", /* Machine name. */
  45. 2, /* Section align power. */
  46. TRUE, /* The default ? */
  47. bfd_default_compatible, /* Architecture comparison fn. */
  48. bfd_default_scan, /* String to architecture convert fn. */
  49. bfd_arch_default_fill, /* Default fill. */
  50. & bfd_epiphany16_arch /* Next in list. */
  51. };