Revision 6ec85236 tcg/ppc/tcg-target.c

b/tcg/ppc/tcg-target.c
24 24

  
25 25
static uint8_t *tb_ret_addr;
26 26

  
27
#ifdef __APPLE__
27
#ifdef _CALL_DARWIN
28 28
#define LINKAGE_AREA_SIZE 24
29 29
#define LR_OFFSET 8
30
#elif defined _AIX
30
#elif defined _CALL_AIX
31 31
#define LINKAGE_AREA_SIZE 52
32 32
#define LR_OFFSET 8
33 33
#else
......
104 104
    TCG_REG_R29,
105 105
    TCG_REG_R30,
106 106
    TCG_REG_R31,
107
#ifdef __APPLE__
107
#ifdef _CALL_DARWIN
108 108
    TCG_REG_R2,
109 109
#endif
110 110
    TCG_REG_R3,
......
115 115
    TCG_REG_R8,
116 116
    TCG_REG_R9,
117 117
    TCG_REG_R10,
118
#ifndef __APPLE__
118
#ifndef _CALL_DARWIN
119 119
    TCG_REG_R11,
120 120
#endif
121 121
    TCG_REG_R12,
122
#ifndef __linux__
122
#ifndef _CALL_SYSV
123 123
    TCG_REG_R13,
124 124
#endif
125 125
    TCG_REG_R24,
......
145 145
};
146 146

  
147 147
static const int tcg_target_callee_save_regs[] = {
148
#ifdef __APPLE__
148
#ifdef _CALL_DARWIN
149 149
    TCG_REG_R11,
150 150
    TCG_REG_R13,
151 151
#endif
152
#ifdef _AIX
152
#ifdef _CALL_AIX
153 153
    TCG_REG_R13,
154 154
#endif
155 155
    TCG_REG_R14,
......
478 478

  
479 479
static void tcg_out_call (TCGContext *s, tcg_target_long arg, int const_arg)
480 480
{
481
#ifdef _AIX
481
#ifdef _CALL_AIX
482 482
    int reg;
483 483

  
484 484
    if (const_arg) {
......
908 908
        ;
909 909
    frame_size = (frame_size + 15) & ~15;
910 910

  
911
#ifdef _AIX
911
#ifdef _CALL_AIX
912 912
    {
913 913
        uint32_t addr;
914 914

  
......
1726 1726
    tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
1727 1727
    tcg_regset_set32(tcg_target_call_clobber_regs, 0,
1728 1728
                     (1 << TCG_REG_R0) |
1729
#ifdef __APPLE__
1729
#ifdef _CALL_DARWIN
1730 1730
                     (1 << TCG_REG_R2) |
1731 1731
#endif
1732 1732
                     (1 << TCG_REG_R3) |
......
1744 1744
    tcg_regset_clear(s->reserved_regs);
1745 1745
    tcg_regset_set_reg(s->reserved_regs, TCG_REG_R0);
1746 1746
    tcg_regset_set_reg(s->reserved_regs, TCG_REG_R1);
1747
#ifndef __APPLE__
1747
#ifndef _CALL_DARWIN
1748 1748
    tcg_regset_set_reg(s->reserved_regs, TCG_REG_R2);
1749 1749
#endif
1750
#ifdef __linux__
1750
#ifdef _CALL_SYSV
1751 1751
    tcg_regset_set_reg(s->reserved_regs, TCG_REG_R13);
1752 1752
#endif
1753 1753
#ifdef CONFIG_USE_GUEST_BASE

Also available in: Unified diff