• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
4 
5 
init_xtensa(const struct target * self)6 static void init_xtensa(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 = &long_ctype;
14 }
15 
predefine_xtensa(const struct target * self)16 static void predefine_xtensa(const struct target *self)
17 {
18 	predefine("__XTENSA__", 1, "1");
19 	predefine("__xtensa__", 1, "1");
20 }
21 
22 const struct target target_xtensa = {
23 	.mach = MACH_XTENSA,
24 	.bitness = ARCH_LP32,
25 	.big_endian = true,
26 
27 	.bits_in_longdouble = 64,
28 
29 	.init = init_xtensa,
30 	.predefine = predefine_xtensa,
31 };
32