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_strong("__AARCH64_CMODEL_%s__", cmodel
);
27 const struct target target_arm64
= {
38 .predefine
= predefine_arm64
,