target-microblaze.c 697 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include "symbol.h"
  2. #include "target.h"
  3. #include "machine.h"
  4. static void init_microblaze(const struct target *self)
  5. {
  6. fast16_ctype = &int_ctype;
  7. ufast16_ctype = &uint_ctype;
  8. fast32_ctype = &int_ctype;
  9. ufast32_ctype = &uint_ctype;
  10. }
  11. static void predefine_microblaze(const struct target *self)
  12. {
  13. predefine("__MICROBLAZE__", 1, "1");
  14. predefine("__microblaze__", 1, "1");
  15. if (arch_big_endian)
  16. predefine("__MICROBLAZEEB__", 1, "1");
  17. else
  18. predefine("__MICROBLAZEEL__", 1, "1");
  19. }
  20. const struct target target_microblaze = {
  21. .mach = MACH_MICROBLAZE,
  22. .bitness = ARCH_LP32,
  23. .big_endian = true,
  24. .bits_in_longdouble = 64,
  25. .init = init_microblaze,
  26. .predefine = predefine_microblaze,
  27. };