target-h8300.c 663 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include "symbol.h"
  2. #include "target.h"
  3. #include "machine.h"
  4. static void init_h8300(const struct target *self)
  5. {
  6. intptr_ctype = &int_ctype;
  7. uintptr_ctype = &uint_ctype;
  8. ssize_t_ctype = &long_ctype;
  9. size_t_ctype = &ulong_ctype;
  10. wchar_ctype = &ushort_ctype;
  11. fast16_ctype = &int_ctype;
  12. ufast16_ctype = &uint_ctype;
  13. fast32_ctype = &int_ctype;
  14. ufast32_ctype = &uint_ctype;
  15. }
  16. static void predefine_h8300(const struct target *self)
  17. {
  18. predefine("__H8300H__", 1, "1");
  19. }
  20. const struct target target_h8300 = {
  21. .mach = MACH_H8300,
  22. .bitness = ARCH_LP32,
  23. .big_endian = true,
  24. .bits_in_longdouble = 64,
  25. .init = init_h8300,
  26. .predefine = predefine_h8300,
  27. };