cpu-mmix.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* BFD library support routines for MMIX.
  2. Copyright (C) 2001-2022 Free Software Foundation, Inc.
  3. Contributed by Hans-Peter Nilsson (hp@bitrange.com)
  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
  21. bfd_mmix_arch =
  22. {
  23. 64, /* Bits in a word. */
  24. 64, /* Bits in an address. */
  25. 8, /* Bits in a byte. */
  26. bfd_arch_mmix, /* Architecture number. */
  27. 0, /* Machine number - 0 for now. */
  28. /* Sorry, these are by custom and creeping assumption lower-case. */
  29. "mmix", /* Architecture name. */
  30. "mmix", /* Printable name. */
  31. 3, /* Section align power. */
  32. true, /* This is the default architecture. */
  33. bfd_default_compatible, /* Architecture comparison function. */
  34. bfd_default_scan, /* String to architecture conversion. */
  35. bfd_arch_default_fill, /* Default fill. */
  36. NULL, /* Next in list. */
  37. 0 /* Maximum offset of a reloc from the start of an insn. */
  38. };