6 static void init_arm64(const struct target
*self
)
8 if (arch_cmodel
== CMODEL_UNKNOWN
)
9 arch_cmodel
= CMODEL_SMALL
;
12 static void predefine_arm64(const struct target
*self
)
14 static const char *cmodels
[CMODEL_LAST
] = {
15 [CMODEL_LARGE
] = "LARGE",
16 [CMODEL_SMALL
] = "SMALL",
17 [CMODEL_TINY
] = "TINY",
19 const char *cmodel
= cmodels
[arch_cmodel
];
21 predefine("__aarch64__", 1, "1");
24 predefine("__AARCH64EB__", 0, "1");
26 predefine("__AARCH64EL__", 0, "1");
29 predefine_strong("__AARCH64_CMODEL_%s__", cmodel
);
32 const struct target target_arm64
= {
43 .predefine
= predefine_arm64
,