aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/target-h8300.c
blob: c3652350bac789ec97a03db4dddfffbcb3def4b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "symbol.h"
#include "target.h"
#include "machine.h"


static void init_h8300(const struct target *self)
{
	intptr_ctype = &int_ctype;
	uintptr_ctype = &uint_ctype;
	ssize_t_ctype = &long_ctype;
	size_t_ctype = &ulong_ctype;
	wchar_ctype = &ushort_ctype;

	fast16_ctype = &int_ctype;
	ufast16_ctype = &uint_ctype;
	fast32_ctype = &int_ctype;
	ufast32_ctype = &uint_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,
};