cpu-or1k.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* BFD support for the OpenRISC 1000 architecture.
  2. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  3. Contributed for OR32 by Ivan Guzvinec <ivang@opencores.org>
  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, see <http://www.gnu.org/licenses/>. */
  15. #include "sysdep.h"
  16. #include "bfd.h"
  17. #include "libbfd.h"
  18. const bfd_arch_info_type bfd_or1k_arch;
  19. const bfd_arch_info_type bfd_or1knd_arch;
  20. const bfd_arch_info_type bfd_or1k_arch =
  21. {
  22. 32, /* 32 bits in a word. */
  23. 32, /* 32 bits in an address. */
  24. 8, /* 8 bits in a byte. */
  25. bfd_arch_or1k,
  26. bfd_mach_or1k,
  27. "or1k",
  28. "or1k",
  29. 4,
  30. TRUE,
  31. bfd_default_compatible,
  32. bfd_default_scan,
  33. bfd_arch_default_fill,
  34. &bfd_or1knd_arch,
  35. };
  36. const bfd_arch_info_type bfd_or1knd_arch =
  37. {
  38. 32, /* 32 bits in a word. */
  39. 32, /* 32 bits in an address. */
  40. 8, /* 8 bits in a byte. */
  41. bfd_arch_or1k,
  42. bfd_mach_or1knd,
  43. "or1knd",
  44. "or1knd",
  45. 4,
  46. FALSE,
  47. bfd_default_compatible,
  48. bfd_default_scan,
  49. bfd_arch_default_fill,
  50. NULL,
  51. };