static uint8_t *tb_ret_addr;
-#ifdef __APPLE__
+#ifdef _CALL_DARWIN
#define LINKAGE_AREA_SIZE 24
#define LR_OFFSET 8
-#elif defined _AIX
+#elif defined _CALL_AIX
#define LINKAGE_AREA_SIZE 52
#define LR_OFFSET 8
#else
TCG_REG_R29,
TCG_REG_R30,
TCG_REG_R31,
-#ifdef __APPLE__
+#ifdef _CALL_DARWIN
TCG_REG_R2,
#endif
TCG_REG_R3,
TCG_REG_R8,
TCG_REG_R9,
TCG_REG_R10,
-#ifndef __APPLE__
+#ifndef _CALL_DARWIN
TCG_REG_R11,
#endif
TCG_REG_R12,
-#ifndef __linux__
+#ifndef _CALL_SYSV
TCG_REG_R13,
#endif
TCG_REG_R24,
};
static const int tcg_target_callee_save_regs[] = {
-#ifdef __APPLE__
+#ifdef _CALL_DARWIN
TCG_REG_R11,
TCG_REG_R13,
#endif
-#ifdef _AIX
+#ifdef _CALL_AIX
TCG_REG_R13,
#endif
TCG_REG_R14,
static void tcg_out_call (TCGContext *s, tcg_target_long arg, int const_arg)
{
-#ifdef _AIX
+#ifdef _CALL_AIX
int reg;
if (const_arg) {
;
frame_size = (frame_size + 15) & ~15;
-#ifdef _AIX
+#ifdef _CALL_AIX
{
uint32_t addr;
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
tcg_regset_set32(tcg_target_call_clobber_regs, 0,
(1 << TCG_REG_R0) |
-#ifdef __APPLE__
+#ifdef _CALL_DARWIN
(1 << TCG_REG_R2) |
#endif
(1 << TCG_REG_R3) |
tcg_regset_clear(s->reserved_regs);
tcg_regset_set_reg(s->reserved_regs, TCG_REG_R0);
tcg_regset_set_reg(s->reserved_regs, TCG_REG_R1);
-#ifndef __APPLE__
+#ifndef _CALL_DARWIN
tcg_regset_set_reg(s->reserved_regs, TCG_REG_R2);
#endif
-#ifdef __linux__
+#ifdef _CALL_SYSV
tcg_regset_set_reg(s->reserved_regs, TCG_REG_R13);
#endif
#ifdef CONFIG_USE_GUEST_BASE