1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
4
5
init_nds32(const struct target * self)6 static void init_nds32(const struct target *self)
7 {
8 fast16_ctype = &int_ctype;
9 ufast16_ctype = &uint_ctype;
10 fast32_ctype = &int_ctype;
11 ufast32_ctype = &uint_ctype;
12
13 wchar_ctype = &uint_ctype;
14 }
15
predefine_nds32(const struct target * self)16 static void predefine_nds32(const struct target *self)
17 {
18 predefine("__NDS32__", 1, "1");
19 predefine("__nds32__", 1, "1");
20
21 predefine_weak("__NDS32_E%c__", arch_big_endian ? 'B' : 'L');
22 }
23
24 const struct target target_nds32 = {
25 .mach = MACH_NDS32,
26 .bitness = ARCH_LP32,
27 .big_endian = false,
28
29 .bits_in_longdouble = 64,
30
31 .init = init_nds32,
32 .predefine = predefine_nds32,
33 };
34