7 static void predefine_nios2(const struct target
*self
)
9 predefine("__NIOS2__", 1, "1");
10 predefine("__nios2__", 1, "1");
13 predefine("__nios2_big_endian__", 1, "1");
15 predefine("__nios2_little_endian__", 1, "1");
18 static const struct builtin_fn builtins_nios2
[] = {
19 { "__builtin_rdctl", &int_ctype
, 0, { &int_ctype
}},
20 { "__builtin_wrctl", &void_ctype
, 0, { &int_ctype
, &int_ctype
}},
21 { "__builtin_custom_ini", &int_ctype
, 0, { &int_ctype
}},
25 const struct target target_nios2
= {
29 .predefine
= predefine_nios2
,
30 .builtins
= builtins_nios2
,