1#include "symbol.h"
2#include "target.h"
3#include "machine.h"
4
5
6static void init_microblaze(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
14static void predefine_microblaze(const struct target *self)
15{
16	predefine("__MICROBLAZE__", 1, "1");
17	predefine("__microblaze__", 1, "1");
18
19	if (arch_big_endian)
20		predefine("__MICROBLAZEEB__", 1, "1");
21	else
22		predefine("__MICROBLAZEEL__", 1, "1");
23}
24
25const struct target target_microblaze = {
26	.mach = MACH_MICROBLAZE,
27	.bitness = ARCH_LP32,
28	.big_endian = true,
29
30	.bits_in_longdouble = 64,
31
32	.init = init_microblaze,
33	.predefine = predefine_microblaze,
34};
35