cpu-or1k.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* BFD support for the OpenRISC 1000 architecture.
  2. Copyright (C) 2002-2022 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. #define N(NUMBER, PRINT, DEFAULT, NEXT) \
  19. { \
  20. 32, /* Bits in a word. */ \
  21. 32, /* Bits in an address. */ \
  22. 8, /* Bits in a byte. */ \
  23. bfd_arch_or1k, \
  24. NUMBER, \
  25. PRINT, \
  26. PRINT, \
  27. 4, /* Section alignment power. */ \
  28. DEFAULT, \
  29. bfd_default_compatible, \
  30. bfd_default_scan, \
  31. bfd_arch_default_fill, \
  32. NEXT, \
  33. 0 /* Maximum offset of a reloc from the start of an insn. */ \
  34. }
  35. const bfd_arch_info_type bfd_or1knd_arch =
  36. N (bfd_mach_or1knd, "or1knd", false, NULL);
  37. const bfd_arch_info_type bfd_or1k_arch =
  38. N (bfd_mach_or1k, "or1k", true, &bfd_or1knd_arch);