aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/target-h8300.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-h8300.c')
-rw-r--r--target-h8300.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/target-h8300.c b/target-h8300.c
new file mode 100644
index 00000000..47872b38
--- /dev/null
+++ b/target-h8300.c
@@ -0,0 +1,27 @@
+#include "symbol.h"
+#include "target.h"
+#include "machine.h"
+
+
+static void init_h8300(const struct target *self)
+{
+ ssize_t_ctype = &long_ctype;
+ size_t_ctype = &ulong_ctype;
+ wchar_ctype = &ushort_ctype;
+}
+
+static void predefine_h8300(const struct target *self)
+{
+ predefine("__H8300H__", 1, "1");
+}
+
+const struct target target_h8300 = {
+ .mach = MACH_H8300,
+ .bitness = ARCH_LP32,
+ .big_endian = true,
+
+ .bits_in_longdouble = 64,
+
+ .init = init_h8300,
+ .predefine = predefine_h8300,
+};