static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)

{

    int addr_reg, data_reg, data_reg2, r0, r1, rbase, mem_index, s_bits, bswap;

#ifdef CONFIG_SOFTMMU

    int r2;

    void *label1_ptr, *label2_ptr;

#endif

#if TARGET_LONG_BITS == 64

    int addr_reg2;

#endif



    data_reg = *args++;

    if (opc == 3)

        data_reg2 = *args++;

    else

        data_reg2 = 0;

    addr_reg = *args++;

#if TARGET_LONG_BITS == 64

    addr_reg2 = *args++;

#endif

    mem_index = *args;

    s_bits = opc & 3;



#ifdef CONFIG_SOFTMMU

    r0 = 3;

    r1 = 4;

    r2 = 0;

    rbase = 0;



    tcg_out32 (s, (RLWINM

                   | RA (r0)

                   | RS (addr_reg)

                   | SH (32 - (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS))

                   | MB (32 - (CPU_TLB_BITS + CPU_TLB_ENTRY_BITS))

                   | ME (31 - CPU_TLB_ENTRY_BITS)

                   )

        );

    tcg_out32 (s, ADD | RT (r0) | RA (r0) | RB (TCG_AREG0));

    tcg_out32 (s, (LWZU

                   | RT (r1)

                   | RA (r0)

                   | offsetof (CPUState, tlb_table[mem_index][0].addr_read)

                   )

        );

    tcg_out32 (s, (RLWINM

                   | RA (r2)

                   | RS (addr_reg)

                   | SH (0)

                   | MB ((32 - s_bits) & 31)

                   | ME (31 - TARGET_PAGE_BITS)

                   )

        );



    tcg_out32 (s, CMP | BF (7) | RA (r2) | RB (r1));

#if TARGET_LONG_BITS == 64

    tcg_out32 (s, LWZ | RT (r1) | RA (r0) | 4);

    tcg_out32 (s, CMP | BF (6) | RA (addr_reg2) | RB (r1));

    tcg_out32 (s, CRAND | BT (7, CR_EQ) | BA (6, CR_EQ) | BB (7, CR_EQ));

#endif



    label1_ptr = s->code_ptr;

#ifdef FAST_PATH

    tcg_out32 (s, BC | BI (7, CR_EQ) | BO_COND_TRUE);

#endif



    /* slow path */

#if TARGET_LONG_BITS == 32

    tcg_out_mov (s, 3, addr_reg);

    tcg_out_movi (s, TCG_TYPE_I32, 4, mem_index);

#else

    tcg_out_mov (s, 3, addr_reg2);

    tcg_out_mov (s, 4, addr_reg);

    tcg_out_movi (s, TCG_TYPE_I32, 5, mem_index);

#endif



    tcg_out_call (s, (tcg_target_long) qemu_ld_helpers[s_bits], 1);

    switch (opc) {

    case 0|4:

        tcg_out32 (s, EXTSB | RA (data_reg) | RS (3));

        break;

    case 1|4:

        tcg_out32 (s, EXTSH | RA (data_reg) | RS (3));

        break;

    case 0:

    case 1:

    case 2:

        if (data_reg != 3)

            tcg_out_mov (s, data_reg, 3);

        break;

    case 3:

        if (data_reg == 3) {

            if (data_reg2 == 4) {

                tcg_out_mov (s, 0, 4);

                tcg_out_mov (s, 4, 3);

                tcg_out_mov (s, 3, 0);

            }

            else {

                tcg_out_mov (s, data_reg2, 3);

                tcg_out_mov (s, 3, 4);

            }

        }

        else {

            if (data_reg != 4) tcg_out_mov (s, data_reg, 4);

            if (data_reg2 != 3) tcg_out_mov (s, data_reg2, 3);

        }

        break;

    }

    label2_ptr = s->code_ptr;

    tcg_out32 (s, B);



    /* label1: fast path */

#ifdef FAST_PATH

    reloc_pc14 (label1_ptr, (tcg_target_long) s->code_ptr);

#endif



    /* r0 now contains &env->tlb_table[mem_index][index].addr_read */

    tcg_out32 (s, (LWZ

                   | RT (r0)

                   | RA (r0)

                   | (ADDEND_OFFSET + offsetof (CPUTLBEntry, addend)

                      - offsetof (CPUTLBEntry, addr_read))

                   ));

    /* r0 = env->tlb_table[mem_index][index].addend */

    tcg_out32 (s, ADD | RT (r0) | RA (r0) | RB (addr_reg));

    /* r0 = env->tlb_table[mem_index][index].addend + addr */



#else  /* !CONFIG_SOFTMMU */

    r0 = addr_reg;

    r1 = 3;

    rbase = GUEST_BASE ? TCG_GUEST_BASE_REG : 0;

#endif



#ifdef TARGET_WORDS_BIGENDIAN

    bswap = 0;

#else

    bswap = 1;

#endif



    switch (opc) {

    default:

    case 0:

        tcg_out32 (s, LBZX | TAB (data_reg, rbase, r0));

        break;

    case 0|4:

        tcg_out32 (s, LBZX | TAB (data_reg, rbase, r0));

        tcg_out32 (s, EXTSB | RA (data_reg) | RS (data_reg));

        break;

    case 1:

        if (bswap)

            tcg_out32 (s, LHBRX | TAB (data_reg, rbase, r0));

        else

            tcg_out32 (s, LHZX | TAB (data_reg, rbase, r0));

        break;

    case 1|4:

        if (bswap) {

            tcg_out32 (s, LHBRX | TAB (data_reg, rbase, r0));

            tcg_out32 (s, EXTSH | RA (data_reg) | RS (data_reg));

        }

        else tcg_out32 (s, LHAX | TAB (data_reg, rbase, r0));

        break;

    case 2:

        if (bswap)

            tcg_out32 (s, LWBRX | TAB (data_reg, rbase, r0));

        else

            tcg_out32 (s, LWZX | TAB (data_reg, rbase, r0));

        break;

    case 3:

        if (bswap) {

            tcg_out32 (s, ADDI | RT (r1) | RA (r0) | 4);

            tcg_out32 (s, LWBRX | TAB (data_reg, rbase, r0));

            tcg_out32 (s, LWBRX | TAB (data_reg2, rbase, r1));

        }

        else {

#ifdef CONFIG_USE_GUEST_BASE

            tcg_out32 (s, ADDI | RT (r1) | RA (r0) | 4);

            tcg_out32 (s, LWZX | TAB (data_reg2, rbase, r0));

            tcg_out32 (s, LWZX | TAB (data_reg, rbase, r1));

#else

            if (r0 == data_reg2) {

                tcg_out32 (s, LWZ | RT (0) | RA (r0));

                tcg_out32 (s, LWZ | RT (data_reg) | RA (r0) | 4);

                tcg_out_mov (s, data_reg2, 0);

            }

            else {

                tcg_out32 (s, LWZ | RT (data_reg2) | RA (r0));

                tcg_out32 (s, LWZ | RT (data_reg) | RA (r0) | 4);

            }

#endif

        }

        break;

    }



#ifdef CONFIG_SOFTMMU

    reloc_pc24 (label2_ptr, (tcg_target_long) s->code_ptr);

#endif

}

static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)

{

    int addr_reg, data_reg, data_reg2, r0, r1, rbase, mem_index, s_bits, bswap;

#ifdef CONFIG_SOFTMMU

    int r2;

    void *label1_ptr, *label2_ptr;

#endif

#if TARGET_LONG_BITS == 64

    int addr_reg2;

#endif



    data_reg = *args++;

    if (opc == 3)

        data_reg2 = *args++;

    else

        data_reg2 = 0;

    addr_reg = *args++;

#if TARGET_LONG_BITS == 64

    addr_reg2 = *args++;

#endif

    mem_index = *args;

    s_bits = opc & 3;



#ifdef CONFIG_SOFTMMU

    r0 = 3;

    r1 = 4;

    r2 = 0;

    rbase = 0;



    tcg_out32 (s, (RLWINM

                   | RA (r0)

                   | RS (addr_reg)

                   | SH (32 - (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS))

                   | MB (32 - (CPU_TLB_BITS + CPU_TLB_ENTRY_BITS))

                   | ME (31 - CPU_TLB_ENTRY_BITS)

                   )

        );

    tcg_out32 (s, ADD | RT (r0) | RA (r0) | RB (TCG_AREG0));

    tcg_out32 (s, (LWZU

                   | RT (r1)

                   | RA (r0)

                   | offsetof (CPUState, tlb_table[mem_index][0].addr_read)

                   )

        );

    tcg_out32 (s, (RLWINM

                   | RA (r2)

                   | RS (addr_reg)

                   | SH (0)

                   | MB ((32 - s_bits) & 31)

                   | ME (31 - TARGET_PAGE_BITS)

                   )

        );



    tcg_out32 (s, CMP | BF (7) | RA (r2) | RB (r1));

#if TARGET_LONG_BITS == 64

    tcg_out32 (s, LWZ | RT (r1) | RA (r0) | 4);

    tcg_out32 (s, CMP | BF (6) | RA (addr_reg2) | RB (r1));

    tcg_out32 (s, CRAND | BT (7, CR_EQ) | BA (6, CR_EQ) | BB (7, CR_EQ));

#endif



    label1_ptr = s->code_ptr;

#ifdef FAST_PATH

    tcg_out32 (s, BC | BI (7, CR_EQ) | BO_COND_TRUE);

#endif



    

#if TARGET_LONG_BITS == 32

    tcg_out_mov (s, 3, addr_reg);

    tcg_out_movi (s, TCG_TYPE_I32, 4, mem_index);

#else

    tcg_out_mov (s, 3, addr_reg2);

    tcg_out_mov (s, 4, addr_reg);

    tcg_out_movi (s, TCG_TYPE_I32, 5, mem_index);

#endif



    tcg_out_call (s, (tcg_target_long) qemu_ld_helpers[s_bits], 1);

    switch (opc) {

    case 0|4:

        tcg_out32 (s, EXTSB | RA (data_reg) | RS (3));

        break;

    case 1|4:

        tcg_out32 (s, EXTSH | RA (data_reg) | RS (3));

        break;

    case 0:

    case 1:

    case 2:

        if (data_reg != 3)

            tcg_out_mov (s, data_reg, 3);

        break;

    case 3:

        if (data_reg == 3) {

            if (data_reg2 == 4) {

                tcg_out_mov (s, 0, 4);

                tcg_out_mov (s, 4, 3);

                tcg_out_mov (s, 3, 0);

            }

            else {

                tcg_out_mov (s, data_reg2, 3);

                tcg_out_mov (s, 3, 4);

            }

        }

        else {

            if (data_reg != 4) tcg_out_mov (s, data_reg, 4);

            if (data_reg2 != 3) tcg_out_mov (s, data_reg2, 3);

        }

        break;

    }

    label2_ptr = s->code_ptr;

    tcg_out32 (s, B);



    

#ifdef FAST_PATH

    reloc_pc14 (label1_ptr, (tcg_target_long) s->code_ptr);

#endif



    

    tcg_out32 (s, (LWZ

                   | RT (r0)

                   | RA (r0)

                   | (ADDEND_OFFSET + offsetof (CPUTLBEntry, addend)

                      - offsetof (CPUTLBEntry, addr_read))

                   ));

    

    tcg_out32 (s, ADD | RT (r0) | RA (r0) | RB (addr_reg));

    



#else  

    r0 = addr_reg;

    r1 = 3;

    rbase = GUEST_BASE ? TCG_GUEST_BASE_REG : 0;

#endif



#ifdef TARGET_WORDS_BIGENDIAN

    bswap = 0;

#else

    bswap = 1;

#endif



    switch (opc) {

    default:

    case 0:

        tcg_out32 (s, LBZX | TAB (data_reg, rbase, r0));

        break;

    case 0|4:

        tcg_out32 (s, LBZX | TAB (data_reg, rbase, r0));

        tcg_out32 (s, EXTSB | RA (data_reg) | RS (data_reg));

        break;

    case 1:

        if (bswap)

            tcg_out32 (s, LHBRX | TAB (data_reg, rbase, r0));

        else

            tcg_out32 (s, LHZX | TAB (data_reg, rbase, r0));

        break;

    case 1|4:

        if (bswap) {

            tcg_out32 (s, LHBRX | TAB (data_reg, rbase, r0));

            tcg_out32 (s, EXTSH | RA (data_reg) | RS (data_reg));

        }

        else tcg_out32 (s, LHAX | TAB (data_reg, rbase, r0));

        break;

    case 2:

        if (bswap)

            tcg_out32 (s, LWBRX | TAB (data_reg, rbase, r0));

        else

            tcg_out32 (s, LWZX | TAB (data_reg, rbase, r0));

        break;

    case 3:

        if (bswap) {

            tcg_out32 (s, ADDI | RT (r1) | RA (r0) | 4);

            tcg_out32 (s, LWBRX | TAB (data_reg, rbase, r0));

            tcg_out32 (s, LWBRX | TAB (data_reg2, rbase, r1));

        }

        else {

#ifdef CONFIG_USE_GUEST_BASE

            tcg_out32 (s, ADDI | RT (r1) | RA (r0) | 4);

            tcg_out32 (s, LWZX | TAB (data_reg2, rbase, r0));

            tcg_out32 (s, LWZX | TAB (data_reg, rbase, r1));

#else

            if (r0 == data_reg2) {

                tcg_out32 (s, LWZ | RT (0) | RA (r0));

                tcg_out32 (s, LWZ | RT (data_reg) | RA (r0) | 4);

                tcg_out_mov (s, data_reg2, 0);

            }

            else {

                tcg_out32 (s, LWZ | RT (data_reg2) | RA (r0));

                tcg_out32 (s, LWZ | RT (data_reg) | RA (r0) | 4);

            }

#endif

        }

        break;

    }



#ifdef CONFIG_SOFTMMU

    reloc_pc24 (label2_ptr, (tcg_target_long) s->code_ptr);

#endif

}

static void FUNC_0 (TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2)

{

    int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;

#ifdef CONFIG_SOFTMMU

    int r2;

    void *label1_ptr, *label2_ptr;

#endif

#if TARGET_LONG_BITS == 64

    int addr_reg2;

#endif



    VAR_4 = *VAR_1++;

    if (VAR_2 == 3)

        VAR_5 = *VAR_1++;

    else

        VAR_5 = 0;

    VAR_3 = *VAR_1++;

#if TARGET_LONG_BITS == 64

    addr_reg2 = *VAR_1++;

#endif

    VAR_9 = *VAR_1;

    VAR_10 = VAR_2 & 3;



#ifdef CONFIG_SOFTMMU

    VAR_6 = 3;

    VAR_7 = 4;

    r2 = 0;

    VAR_8 = 0;



    tcg_out32 (VAR_0, (RLWINM

                   | RA (VAR_6)

                   | RS (VAR_3)

                   | SH (32 - (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS))

                   | MB (32 - (CPU_TLB_BITS + CPU_TLB_ENTRY_BITS))

                   | ME (31 - CPU_TLB_ENTRY_BITS)

                   )

        );

    tcg_out32 (VAR_0, ADD | RT (VAR_6) | RA (VAR_6) | RB (TCG_AREG0));

    tcg_out32 (VAR_0, (LWZU

                   | RT (VAR_7)

                   | RA (VAR_6)

                   | offsetof (CPUState, tlb_table[VAR_9][0].addr_read)

                   )

        );

    tcg_out32 (VAR_0, (RLWINM

                   | RA (r2)

                   | RS (VAR_3)

                   | SH (0)

                   | MB ((32 - VAR_10) & 31)

                   | ME (31 - TARGET_PAGE_BITS)

                   )

        );



    tcg_out32 (VAR_0, CMP | BF (7) | RA (r2) | RB (VAR_7));

#if TARGET_LONG_BITS == 64

    tcg_out32 (VAR_0, LWZ | RT (VAR_7) | RA (VAR_6) | 4);

    tcg_out32 (VAR_0, CMP | BF (6) | RA (addr_reg2) | RB (VAR_7));

    tcg_out32 (VAR_0, CRAND | BT (7, CR_EQ) | BA (6, CR_EQ) | BB (7, CR_EQ));

#endif



    label1_ptr = VAR_0->code_ptr;

#ifdef FAST_PATH

    tcg_out32 (VAR_0, BC | BI (7, CR_EQ) | BO_COND_TRUE);

#endif



    

#if TARGET_LONG_BITS == 32

    tcg_out_mov (VAR_0, 3, VAR_3);

    tcg_out_movi (VAR_0, TCG_TYPE_I32, 4, VAR_9);

#else

    tcg_out_mov (VAR_0, 3, addr_reg2);

    tcg_out_mov (VAR_0, 4, VAR_3);

    tcg_out_movi (VAR_0, TCG_TYPE_I32, 5, VAR_9);

#endif



    tcg_out_call (VAR_0, (tcg_target_long) qemu_ld_helpers[VAR_10], 1);

    switch (VAR_2) {

    case 0|4:

        tcg_out32 (VAR_0, EXTSB | RA (VAR_4) | RS (3));

        break;

    case 1|4:

        tcg_out32 (VAR_0, EXTSH | RA (VAR_4) | RS (3));

        break;

    case 0:

    case 1:

    case 2:

        if (VAR_4 != 3)

            tcg_out_mov (VAR_0, VAR_4, 3);

        break;

    case 3:

        if (VAR_4 == 3) {

            if (VAR_5 == 4) {

                tcg_out_mov (VAR_0, 0, 4);

                tcg_out_mov (VAR_0, 4, 3);

                tcg_out_mov (VAR_0, 3, 0);

            }

            else {

                tcg_out_mov (VAR_0, VAR_5, 3);

                tcg_out_mov (VAR_0, 3, 4);

            }

        }

        else {

            if (VAR_4 != 4) tcg_out_mov (VAR_0, VAR_4, 4);

            if (VAR_5 != 3) tcg_out_mov (VAR_0, VAR_5, 3);

        }

        break;

    }

    label2_ptr = VAR_0->code_ptr;

    tcg_out32 (VAR_0, B);



    

#ifdef FAST_PATH

    reloc_pc14 (label1_ptr, (tcg_target_long) VAR_0->code_ptr);

#endif



    

    tcg_out32 (VAR_0, (LWZ

                   | RT (VAR_6)

                   | RA (VAR_6)

                   | (ADDEND_OFFSET + offsetof (CPUTLBEntry, addend)

                      - offsetof (CPUTLBEntry, addr_read))

                   ));

    

    tcg_out32 (VAR_0, ADD | RT (VAR_6) | RA (VAR_6) | RB (VAR_3));

    



#else  

    VAR_6 = VAR_3;

    VAR_7 = 3;

    VAR_8 = GUEST_BASE ? TCG_GUEST_BASE_REG : 0;

#endif



#ifdef TARGET_WORDS_BIGENDIAN

    VAR_11 = 0;

#else

    VAR_11 = 1;

#endif



    switch (VAR_2) {

    default:

    case 0:

        tcg_out32 (VAR_0, LBZX | TAB (VAR_4, VAR_8, VAR_6));

        break;

    case 0|4:

        tcg_out32 (VAR_0, LBZX | TAB (VAR_4, VAR_8, VAR_6));

        tcg_out32 (VAR_0, EXTSB | RA (VAR_4) | RS (VAR_4));

        break;

    case 1:

        if (VAR_11)

            tcg_out32 (VAR_0, LHBRX | TAB (VAR_4, VAR_8, VAR_6));

        else

            tcg_out32 (VAR_0, LHZX | TAB (VAR_4, VAR_8, VAR_6));

        break;

    case 1|4:

        if (VAR_11) {

            tcg_out32 (VAR_0, LHBRX | TAB (VAR_4, VAR_8, VAR_6));

            tcg_out32 (VAR_0, EXTSH | RA (VAR_4) | RS (VAR_4));

        }

        else tcg_out32 (VAR_0, LHAX | TAB (VAR_4, VAR_8, VAR_6));

        break;

    case 2:

        if (VAR_11)

            tcg_out32 (VAR_0, LWBRX | TAB (VAR_4, VAR_8, VAR_6));

        else

            tcg_out32 (VAR_0, LWZX | TAB (VAR_4, VAR_8, VAR_6));

        break;

    case 3:

        if (VAR_11) {

            tcg_out32 (VAR_0, ADDI | RT (VAR_7) | RA (VAR_6) | 4);

            tcg_out32 (VAR_0, LWBRX | TAB (VAR_4, VAR_8, VAR_6));

            tcg_out32 (VAR_0, LWBRX | TAB (VAR_5, VAR_8, VAR_7));

        }

        else {

#ifdef CONFIG_USE_GUEST_BASE

            tcg_out32 (VAR_0, ADDI | RT (VAR_7) | RA (VAR_6) | 4);

            tcg_out32 (VAR_0, LWZX | TAB (VAR_5, VAR_8, VAR_6));

            tcg_out32 (VAR_0, LWZX | TAB (VAR_4, VAR_8, VAR_7));

#else

            if (VAR_6 == VAR_5) {

                tcg_out32 (VAR_0, LWZ | RT (0) | RA (VAR_6));

                tcg_out32 (VAR_0, LWZ | RT (VAR_4) | RA (VAR_6) | 4);

                tcg_out_mov (VAR_0, VAR_5, 0);

            }

            else {

                tcg_out32 (VAR_0, LWZ | RT (VAR_5) | RA (VAR_6));

                tcg_out32 (VAR_0, LWZ | RT (VAR_4) | RA (VAR_6) | 4);

            }

#endif

        }

        break;

    }



#ifdef CONFIG_SOFTMMU

    reloc_pc24 (label2_ptr, (tcg_target_long) VAR_0->code_ptr);

#endif

}

static void FUNC_0 (TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2)
{ int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; #ifdef CONFIG_SOFTMMU
int r2; void *label1_ptr, *label2_ptr; #endif
#if TARGET_LONG_BITS == 64
int addr_reg2; #endif
VAR_4 = *VAR_1++; if (VAR_2 == 3)
VAR_5 = *VAR_1++; else
VAR_5 = 0; VAR_3 = *VAR_1++; #if TARGET_LONG_BITS == 64
addr_reg2 = *VAR_1++; #endif
VAR_9 = *VAR_1; VAR_10 = VAR_2 & 3; #ifdef CONFIG_SOFTMMU
VAR_6 = 3; VAR_7 = 4; r2 = 0; VAR_8 = 0; tcg_out32 (VAR_0, (RLWINM
| RA (VAR_6)
| RS (VAR_3)
| SH (32 - (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS))
| MB (32 - (CPU_TLB_BITS + CPU_TLB_ENTRY_BITS))
| ME (31 - CPU_TLB_ENTRY_BITS)
)
); tcg_out32 (VAR_0, ADD | RT (VAR_6) | RA (VAR_6) | RB (TCG_AREG0)); tcg_out32 (VAR_0, (LWZU
| RT (VAR_7)
| RA (VAR_6)
| offsetof (CPUState, tlb_table[VAR_9][0].addr_read)
)
); tcg_out32 (VAR_0, (RLWINM
| RA (r2)
| RS (VAR_3)
| SH (0)
| MB ((32 - VAR_10) & 31)
| ME (31 - TARGET_PAGE_BITS)
)
); tcg_out32 (VAR_0, CMP | BF (7) | RA (r2) | RB (VAR_7)); #if TARGET_LONG_BITS == 64
tcg_out32 (VAR_0, LWZ | RT (VAR_7) | RA (VAR_6) | 4); tcg_out32 (VAR_0, CMP | BF (6) | RA (addr_reg2) | RB (VAR_7)); tcg_out32 (VAR_0, CRAND | BT (7, CR_EQ) | BA (6, CR_EQ) | BB (7, CR_EQ)); #endif
label1_ptr = VAR_0->code_ptr; #ifdef FAST_PATH
tcg_out32 (VAR_0, BC | BI (7, CR_EQ) | BO_COND_TRUE); #endif
#if TARGET_LONG_BITS == 32
tcg_out_mov (VAR_0, 3, VAR_3); tcg_out_movi (VAR_0, TCG_TYPE_I32, 4, VAR_9); #else
tcg_out_mov (VAR_0, 3, addr_reg2); tcg_out_mov (VAR_0, 4, VAR_3); tcg_out_movi (VAR_0, TCG_TYPE_I32, 5, VAR_9); #endif
tcg_out_call (VAR_0, (tcg_target_long) qemu_ld_helpers[VAR_10], 1); switch (VAR_2) { case 0|4:
tcg_out32 (VAR_0, EXTSB | RA (VAR_4) | RS (3)); break; case 1|4:
tcg_out32 (VAR_0, EXTSH | RA (VAR_4) | RS (3)); break; case 0:
case 1:
case 2:
if (VAR_4 != 3)
tcg_out_mov (VAR_0, VAR_4, 3); break; case 3:
if (VAR_4 == 3) { if (VAR_5 == 4) { tcg_out_mov (VAR_0, 0, 4); tcg_out_mov (VAR_0, 4, 3); tcg_out_mov (VAR_0, 3, 0); } else { tcg_out_mov (VAR_0, VAR_5, 3); tcg_out_mov (VAR_0, 3, 4); } } else { if (VAR_4 != 4) tcg_out_mov (VAR_0, VAR_4, 4); if (VAR_5 != 3) tcg_out_mov (VAR_0, VAR_5, 3); } break; } label2_ptr = VAR_0->code_ptr; tcg_out32 (VAR_0, B); #ifdef FAST_PATH
reloc_pc14 (label1_ptr, (tcg_target_long) VAR_0->code_ptr); #endif
tcg_out32 (VAR_0, (LWZ
| RT (VAR_6)
| RA (VAR_6)
| (ADDEND_OFFSET + offsetof (CPUTLBEntry, addend)
- offsetof (CPUTLBEntry, addr_read))
)); tcg_out32 (VAR_0, ADD | RT (VAR_6) | RA (VAR_6) | RB (VAR_3)); #else
VAR_6 = VAR_3; VAR_7 = 3; VAR_8 = GUEST_BASE ? TCG_GUEST_BASE_REG : 0; #endif
#ifdef TARGET_WORDS_BIGENDIAN
VAR_11 = 0; #else
VAR_11 = 1; #endif
switch (VAR_2) { default:
case 0:
tcg_out32 (VAR_0, LBZX | TAB (VAR_4, VAR_8, VAR_6)); break; case 0|4:
tcg_out32 (VAR_0, LBZX | TAB (VAR_4, VAR_8, VAR_6)); tcg_out32 (VAR_0, EXTSB | RA (VAR_4) | RS (VAR_4)); break; case 1:
if (VAR_11)
tcg_out32 (VAR_0, LHBRX | TAB (VAR_4, VAR_8, VAR_6)); else
tcg_out32 (VAR_0, LHZX | TAB (VAR_4, VAR_8, VAR_6)); break; case 1|4:
if (VAR_11) { tcg_out32 (VAR_0, LHBRX | TAB (VAR_4, VAR_8, VAR_6)); tcg_out32 (VAR_0, EXTSH | RA (VAR_4) | RS (VAR_4)); } else tcg_out32 (VAR_0, LHAX | TAB (VAR_4, VAR_8, VAR_6)); break; case 2:
if (VAR_11)
tcg_out32 (VAR_0, LWBRX | TAB (VAR_4, VAR_8, VAR_6)); else
tcg_out32 (VAR_0, LWZX | TAB (VAR_4, VAR_8, VAR_6)); break; case 3:
if (VAR_11) { tcg_out32 (VAR_0, ADDI | RT (VAR_7) | RA (VAR_6) | 4); tcg_out32 (VAR_0, LWBRX | TAB (VAR_4, VAR_8, VAR_6)); tcg_out32 (VAR_0, LWBRX | TAB (VAR_5, VAR_8, VAR_7)); } else { #ifdef CONFIG_USE_GUEST_BASE
tcg_out32 (VAR_0, ADDI | RT (VAR_7) | RA (VAR_6) | 4); tcg_out32 (VAR_0, LWZX | TAB (VAR_5, VAR_8, VAR_6)); tcg_out32 (VAR_0, LWZX | TAB (VAR_4, VAR_8, VAR_7)); #else
if (VAR_6 == VAR_5) { tcg_out32 (VAR_0, LWZ | RT (0) | RA (VAR_6)); tcg_out32 (VAR_0, LWZ | RT (VAR_4) | RA (VAR_6) | 4); tcg_out_mov (VAR_0, VAR_5, 0); } else { tcg_out32 (VAR_0, LWZ | RT (VAR_5) | RA (VAR_6)); tcg_out32 (VAR_0, LWZ | RT (VAR_4) | RA (VAR_6) | 4); } #endif
} break; } #ifdef CONFIG_SOFTMMU
reloc_pc24 (label2_ptr, (tcg_target_long) VAR_0->code_ptr); #endif
}