cpu-frv.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* BFD support for the FRV processor.
  2. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  3. This file is part of BFD, the Binary File Descriptor library.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #include "sysdep.h"
  17. #include "bfd.h"
  18. #include "libbfd.h"
  19. #define FRV_ARCH(MACHINE, NAME, DEFAULT, NEXT) \
  20. { \
  21. 32, /* 32 bits in a word */ \
  22. 32, /* 32 bits in an address */ \
  23. 8, /* 8 bits in a byte */ \
  24. bfd_arch_frv, /* architecture */ \
  25. MACHINE, /* which machine */ \
  26. "frv", /* architecture name */ \
  27. NAME, /* machine name */ \
  28. 4, /* default alignment */ \
  29. DEFAULT, /* is this the default? */ \
  30. bfd_default_compatible, /* architecture comparison fn */ \
  31. bfd_default_scan, /* string to architecture convert fn */ \
  32. bfd_arch_default_fill, /* Default fill. */ \
  33. NEXT /* next in list */ \
  34. }
  35. static const bfd_arch_info_type arch_info_300
  36. = FRV_ARCH (bfd_mach_fr300, "fr300", FALSE, (bfd_arch_info_type *)0);
  37. static const bfd_arch_info_type arch_info_400
  38. = FRV_ARCH (bfd_mach_fr400, "fr400", FALSE, &arch_info_300);
  39. static const bfd_arch_info_type arch_info_450
  40. = FRV_ARCH (bfd_mach_fr450, "fr450", FALSE, &arch_info_400);
  41. static const bfd_arch_info_type arch_info_500
  42. = FRV_ARCH (bfd_mach_fr500, "fr500", FALSE, &arch_info_450);
  43. static const bfd_arch_info_type arch_info_550
  44. = FRV_ARCH (bfd_mach_fr550, "fr550", FALSE, &arch_info_500);
  45. static const bfd_arch_info_type arch_info_simple
  46. = FRV_ARCH (bfd_mach_frvsimple, "simple", FALSE, &arch_info_550);
  47. static const bfd_arch_info_type arch_info_tomcat
  48. = FRV_ARCH (bfd_mach_frvtomcat, "tomcat", FALSE, &arch_info_simple);
  49. const bfd_arch_info_type bfd_frv_arch
  50. = FRV_ARCH (bfd_mach_frv, "frv", TRUE, &arch_info_tomcat);