• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
4 
5 
init_sh(const struct target * self)6 static void init_sh(const struct target *self)
7 {
8 	int64_ctype = &llong_ctype;
9 	uint64_ctype = &ullong_ctype;
10 	intptr_ctype = &int_ctype;
11 	uintptr_ctype = &uint_ctype;
12 
13 	fast16_ctype = &int_ctype;
14 	ufast16_ctype = &uint_ctype;
15 	fast32_ctype = &int_ctype;
16 	ufast32_ctype = &uint_ctype;
17 
18 	wchar_ctype = &long_ctype;
19 }
20 
predefine_sh(const struct target * self)21 static void predefine_sh(const struct target *self)
22 {
23 	predefine_weak("__SH4__");
24 	predefine_weak("__sh__");
25 }
26 
27 const struct target target_sh = {
28 	.mach = MACH_SH,
29 	.bitness = ARCH_LP32,
30 	.big_endian = false,
31 
32 	.bits_in_longdouble = 64,
33 
34 	.init = init_sh,
35 	.predefine = predefine_sh,
36 };
37