static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args,
                            int opc)
{
    int addr_reg, data_reg, arg0, arg1, arg2, mem_index, s_bits;
#if defined(CONFIG_SOFTMMU)
    uint32_t *label1_ptr, *label2_ptr;
    data_reg = *args++;
    addr_reg = *args++;
    mem_index = *args;
    s_bits = opc & 3;
    arg0 = TCG_REG_O0;
    arg1 = TCG_REG_O1;
    arg2 = TCG_REG_O2;
#if defined(CONFIG_SOFTMMU)
    /* srl addr_reg, x, arg1 */
    tcg_out_arithi(s, arg1, addr_reg, TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS,
                   SHIFT_SRL);
    tcg_out_arithi(s, arg0, addr_reg, TARGET_PAGE_MASK | ((1 << s_bits) - 1),
                   ARITH_AND);
    /* and arg1, x, arg1 */
    tcg_out_andi(s, arg1, (CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS);
    /* add arg1, x, arg1 */
    tcg_out_addi(s, arg1, offsetof(CPUState,
                                   tlb_table[mem_index][0].addr_read));
    /* add env, arg1, arg1 */
    tcg_out_arith(s, arg1, TCG_AREG0, arg1, ARITH_ADD);
    /* ld [arg1], arg2 */
    tcg_out32(s, TARGET_LD_OP | INSN_RD(arg2) | INSN_RS1(arg1) |
              INSN_RS2(TCG_REG_G0));
    /* subcc arg0, arg2, %g0 */
    tcg_out_arith(s, TCG_REG_G0, arg0, arg2, ARITH_SUBCC);
    /* will become:
       be label1 */
    label1_ptr = (uint32_t *)s->code_ptr;
    tcg_out32(s, 0);
    /* mov (delay slot) */
    tcg_out_mov(s, arg0, addr_reg);
    /* mov */
    tcg_out_movi(s, TCG_TYPE_I32, arg1, mem_index);
    /* XXX: move that code at the end of the TB */
    /* qemu_ld_helper[s_bits](arg0, arg1) */
    tcg_out32(s, CALL | ((((tcg_target_ulong)qemu_ld_helpers[s_bits]
                           - (tcg_target_ulong)s->code_ptr) >> 2)
                         & 0x3fffffff));
    /* Store AREG0 in stack to avoid ugly glibc bugs that mangle
       global registers */
    // delay slot
    tcg_out_ldst(s, TCG_AREG0, TCG_REG_CALL_STACK,
                 TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_ST_OP);
    tcg_out_ldst(s, TCG_AREG0, TCG_REG_CALL_STACK,
                 TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_LD_OP);
    /* data_reg = sign_extend(arg0) */
    switch(opc) {
    case 0 | 4:
        /* sll arg0, 24/56, data_reg */
        tcg_out_arithi(s, data_reg, arg0, (int)sizeof(tcg_target_long) * 8 - 8,
                       HOST_SLL_OP);
        /* sra data_reg, 24/56, data_reg */
        tcg_out_arithi(s, data_reg, data_reg,
                       (int)sizeof(tcg_target_long) * 8 - 8, HOST_SRA_OP);
        break;
    case 1 | 4:
        /* sll arg0, 16/48, data_reg */
        tcg_out_arithi(s, data_reg, arg0,
                       (int)sizeof(tcg_target_long) * 8 - 16, HOST_SLL_OP);
        /* sra data_reg, 16/48, data_reg */
        tcg_out_arithi(s, data_reg, data_reg,
                       (int)sizeof(tcg_target_long) * 8 - 16, HOST_SRA_OP);
        break;
    case 2 | 4:
        /* sll arg0, 32, data_reg */
        tcg_out_arithi(s, data_reg, arg0, 32, HOST_SLL_OP);
        /* sra data_reg, 32, data_reg */
        tcg_out_arithi(s, data_reg, data_reg, 32, HOST_SRA_OP);
        break;
    case 0:
    case 1:
    case 2:
    case 3:
    default:
        /* mov */
        tcg_out_mov(s, data_reg, arg0);
        break;
    }
    /* will become:
       ba label2 */
    label2_ptr = (uint32_t *)s->code_ptr;
    tcg_out32(s, 0);
    /* nop (delay slot */
    tcg_out_nop(s);
    /* label1: */
    *label1_ptr = (INSN_OP(0) | INSN_COND(COND_E, 0) | INSN_OP2(0x2) |
                   INSN_OFF22((unsigned long)s->code_ptr -
                              (unsigned long)label1_ptr));
    /* ld [arg1 + x], arg1 */
    tcg_out_ldst(s, arg1, arg1, offsetof(CPUTLBEntry, addend) -
                 offsetof(CPUTLBEntry, addr_read), HOST_LD_OP);
    /* add addr_reg, arg1, arg0 */
    tcg_out_arith(s, arg0, addr_reg, arg1, ARITH_ADD);
    arg0 = addr_reg;
    switch(opc) {
    case 0:
        /* ldub [arg0], data_reg */
        tcg_out_ldst(s, data_reg, arg0, 0, LDUB);
        break;
    case 0 | 4:
        /* ldsb [arg0], data_reg */
        tcg_out_ldst(s, data_reg, arg0, 0, LDSB);
        break;
    case 1:
#ifdef TARGET_WORDS_BIGENDIAN
        /* lduh [arg0], data_reg */
        tcg_out_ldst(s, data_reg, arg0, 0, LDUH);
        /* lduha [arg0] ASI_PRIMARY_LITTLE, data_reg */
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDUHA, ASI_PRIMARY_LITTLE);
        break;
    case 1 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
        /* ldsh [arg0], data_reg */
        tcg_out_ldst(s, data_reg, arg0, 0, LDSH);
        /* ldsha [arg0] ASI_PRIMARY_LITTLE, data_reg */
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDSHA, ASI_PRIMARY_LITTLE);
        break;
    case 2:
#ifdef TARGET_WORDS_BIGENDIAN
        /* lduw [arg0], data_reg */
        tcg_out_ldst(s, data_reg, arg0, 0, LDUW);
        /* lduwa [arg0] ASI_PRIMARY_LITTLE, data_reg */
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDUWA, ASI_PRIMARY_LITTLE);
        break;
    case 2 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
        /* ldsw [arg0], data_reg */
        tcg_out_ldst(s, data_reg, arg0, 0, LDSW);
        /* ldswa [arg0] ASI_PRIMARY_LITTLE, data_reg */
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDSWA, ASI_PRIMARY_LITTLE);
        break;
    case 3:
#ifdef TARGET_WORDS_BIGENDIAN
        /* ldx [arg0], data_reg */
        tcg_out_ldst(s, data_reg, arg0, 0, LDX);
        /* ldxa [arg0] ASI_PRIMARY_LITTLE, data_reg */
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDXA, ASI_PRIMARY_LITTLE);
        break;
    default:
        tcg_abort();
    }
#if defined(CONFIG_SOFTMMU)
    /* label2: */
    *label2_ptr = (INSN_OP(0) | INSN_COND(COND_A, 0) | INSN_OP2(0x2) |
                   INSN_OFF22((unsigned long)s->code_ptr -
                              (unsigned long)label2_ptr));
}
static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args,
                            int opc)
{
    int addr_reg, data_reg, arg0, arg1, arg2, mem_index, s_bits;
#if defined(CONFIG_SOFTMMU)
    uint32_t *label1_ptr, *label2_ptr;
    data_reg = *args++;
    addr_reg = *args++;
    mem_index = *args;
    s_bits = opc & 3;
    arg0 = TCG_REG_O0;
    arg1 = TCG_REG_O1;
    arg2 = TCG_REG_O2;
#if defined(CONFIG_SOFTMMU)
    
    tcg_out_arithi(s, arg1, addr_reg, TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS,
                   SHIFT_SRL);
    tcg_out_arithi(s, arg0, addr_reg, TARGET_PAGE_MASK | ((1 << s_bits) - 1),
                   ARITH_AND);
    
    tcg_out_andi(s, arg1, (CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS);
    
    tcg_out_addi(s, arg1, offsetof(CPUState,
                                   tlb_table[mem_index][0].addr_read));
    
    tcg_out_arith(s, arg1, TCG_AREG0, arg1, ARITH_ADD);
    
    tcg_out32(s, TARGET_LD_OP | INSN_RD(arg2) | INSN_RS1(arg1) |
              INSN_RS2(TCG_REG_G0));
    
    tcg_out_arith(s, TCG_REG_G0, arg0, arg2, ARITH_SUBCC);
    

    label1_ptr = (uint32_t *)s->code_ptr;
    tcg_out32(s, 0);
    
    tcg_out_mov(s, arg0, addr_reg);
    
    tcg_out_movi(s, TCG_TYPE_I32, arg1, mem_index);
    
    
    tcg_out32(s, CALL | ((((tcg_target_ulong)qemu_ld_helpers[s_bits]
                           - (tcg_target_ulong)s->code_ptr) >> 2)
                         & 0x3fffffff));
    

    
    tcg_out_ldst(s, TCG_AREG0, TCG_REG_CALL_STACK,
                 TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_ST_OP);
    tcg_out_ldst(s, TCG_AREG0, TCG_REG_CALL_STACK,
                 TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_LD_OP);
    
    switch(opc) {
    case 0 | 4:
        
        tcg_out_arithi(s, data_reg, arg0, (int)sizeof(tcg_target_long) * 8 - 8,
                       HOST_SLL_OP);
        
        tcg_out_arithi(s, data_reg, data_reg,
                       (int)sizeof(tcg_target_long) * 8 - 8, HOST_SRA_OP);
        break;
    case 1 | 4:
        
        tcg_out_arithi(s, data_reg, arg0,
                       (int)sizeof(tcg_target_long) * 8 - 16, HOST_SLL_OP);
        
        tcg_out_arithi(s, data_reg, data_reg,
                       (int)sizeof(tcg_target_long) * 8 - 16, HOST_SRA_OP);
        break;
    case 2 | 4:
        
        tcg_out_arithi(s, data_reg, arg0, 32, HOST_SLL_OP);
        
        tcg_out_arithi(s, data_reg, data_reg, 32, HOST_SRA_OP);
        break;
    case 0:
    case 1:
    case 2:
    case 3:
    default:
        
        tcg_out_mov(s, data_reg, arg0);
        break;
    }
    

    label2_ptr = (uint32_t *)s->code_ptr;
    tcg_out32(s, 0);
    
    tcg_out_nop(s);
    
    *label1_ptr = (INSN_OP(0) | INSN_COND(COND_E, 0) | INSN_OP2(0x2) |
                   INSN_OFF22((unsigned long)s->code_ptr -
                              (unsigned long)label1_ptr));
    
    tcg_out_ldst(s, arg1, arg1, offsetof(CPUTLBEntry, addend) -
                 offsetof(CPUTLBEntry, addr_read), HOST_LD_OP);
    
    tcg_out_arith(s, arg0, addr_reg, arg1, ARITH_ADD);
    arg0 = addr_reg;
    switch(opc) {
    case 0:
        
        tcg_out_ldst(s, data_reg, arg0, 0, LDUB);
        break;
    case 0 | 4:
        
        tcg_out_ldst(s, data_reg, arg0, 0, LDSB);
        break;
    case 1:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(s, data_reg, arg0, 0, LDUH);
        
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDUHA, ASI_PRIMARY_LITTLE);
        break;
    case 1 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(s, data_reg, arg0, 0, LDSH);
        
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDSHA, ASI_PRIMARY_LITTLE);
        break;
    case 2:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(s, data_reg, arg0, 0, LDUW);
        
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDUWA, ASI_PRIMARY_LITTLE);
        break;
    case 2 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(s, data_reg, arg0, 0, LDSW);
        
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDSWA, ASI_PRIMARY_LITTLE);
        break;
    case 3:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(s, data_reg, arg0, 0, LDX);
        
        tcg_out_ldst_asi(s, data_reg, arg0, 0, LDXA, ASI_PRIMARY_LITTLE);
        break;
    default:
        tcg_abort();
    }
#if defined(CONFIG_SOFTMMU)
    
    *label2_ptr = (INSN_OP(0) | INSN_COND(COND_A, 0) | INSN_OP2(0x2) |
                   INSN_OFF22((unsigned long)s->code_ptr -
                              (unsigned long)label2_ptr));
}
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;
#if defined(CONFIG_SOFTMMU)
    uint32_t *label1_ptr, *label2_ptr;
    VAR_4 = *VAR_1++;
    VAR_3 = *VAR_1++;
    VAR_8 = *VAR_1;
    VAR_9 = VAR_2 & 3;
    VAR_5 = TCG_REG_O0;
    VAR_6 = TCG_REG_O1;
    VAR_7 = TCG_REG_O2;
#if defined(CONFIG_SOFTMMU)
    
    tcg_out_arithi(VAR_0, VAR_6, VAR_3, TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS,
                   SHIFT_SRL);
    tcg_out_arithi(VAR_0, VAR_5, VAR_3, TARGET_PAGE_MASK | ((1 << VAR_9) - 1),
                   ARITH_AND);
    
    tcg_out_andi(VAR_0, VAR_6, (CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS);
    
    tcg_out_addi(VAR_0, VAR_6, offsetof(CPUState,
                                   tlb_table[VAR_8][0].addr_read));
    
    tcg_out_arith(VAR_0, VAR_6, TCG_AREG0, VAR_6, ARITH_ADD);
    
    tcg_out32(VAR_0, TARGET_LD_OP | INSN_RD(VAR_7) | INSN_RS1(VAR_6) |
              INSN_RS2(TCG_REG_G0));
    
    tcg_out_arith(VAR_0, TCG_REG_G0, VAR_5, VAR_7, ARITH_SUBCC);
    

    label1_ptr = (uint32_t *)VAR_0->code_ptr;
    tcg_out32(VAR_0, 0);
    
    tcg_out_mov(VAR_0, VAR_5, VAR_3);
    
    tcg_out_movi(VAR_0, TCG_TYPE_I32, VAR_6, VAR_8);
    
    
    tcg_out32(VAR_0, CALL | ((((tcg_target_ulong)qemu_ld_helpers[VAR_9]
                           - (tcg_target_ulong)VAR_0->code_ptr) >> 2)
                         & 0x3fffffff));
    

    
    tcg_out_ldst(VAR_0, TCG_AREG0, TCG_REG_CALL_STACK,
                 TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_ST_OP);
    tcg_out_ldst(VAR_0, TCG_AREG0, TCG_REG_CALL_STACK,
                 TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_LD_OP);
    
    switch(VAR_2) {
    case 0 | 4:
        
        tcg_out_arithi(VAR_0, VAR_4, VAR_5, (int)sizeof(tcg_target_long) * 8 - 8,
                       HOST_SLL_OP);
        
        tcg_out_arithi(VAR_0, VAR_4, VAR_4,
                       (int)sizeof(tcg_target_long) * 8 - 8, HOST_SRA_OP);
        break;
    case 1 | 4:
        
        tcg_out_arithi(VAR_0, VAR_4, VAR_5,
                       (int)sizeof(tcg_target_long) * 8 - 16, HOST_SLL_OP);
        
        tcg_out_arithi(VAR_0, VAR_4, VAR_4,
                       (int)sizeof(tcg_target_long) * 8 - 16, HOST_SRA_OP);
        break;
    case 2 | 4:
        
        tcg_out_arithi(VAR_0, VAR_4, VAR_5, 32, HOST_SLL_OP);
        
        tcg_out_arithi(VAR_0, VAR_4, VAR_4, 32, HOST_SRA_OP);
        break;
    case 0:
    case 1:
    case 2:
    case 3:
    default:
        
        tcg_out_mov(VAR_0, VAR_4, VAR_5);
        break;
    }
    

    label2_ptr = (uint32_t *)VAR_0->code_ptr;
    tcg_out32(VAR_0, 0);
    
    tcg_out_nop(VAR_0);
    
    *label1_ptr = (INSN_OP(0) | INSN_COND(COND_E, 0) | INSN_OP2(0x2) |
                   INSN_OFF22((unsigned long)VAR_0->code_ptr -
                              (unsigned long)label1_ptr));
    
    tcg_out_ldst(VAR_0, VAR_6, VAR_6, offsetof(CPUTLBEntry, addend) -
                 offsetof(CPUTLBEntry, addr_read), HOST_LD_OP);
    
    tcg_out_arith(VAR_0, VAR_5, VAR_3, VAR_6, ARITH_ADD);
    VAR_5 = VAR_3;
    switch(VAR_2) {
    case 0:
        
        tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDUB);
        break;
    case 0 | 4:
        
        tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDSB);
        break;
    case 1:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDUH);
        
        tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDUHA, ASI_PRIMARY_LITTLE);
        break;
    case 1 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDSH);
        
        tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDSHA, ASI_PRIMARY_LITTLE);
        break;
    case 2:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDUW);
        
        tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDUWA, ASI_PRIMARY_LITTLE);
        break;
    case 2 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDSW);
        
        tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDSWA, ASI_PRIMARY_LITTLE);
        break;
    case 3:
#ifdef TARGET_WORDS_BIGENDIAN
        
        tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDX);
        
        tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDXA, ASI_PRIMARY_LITTLE);
        break;
    default:
        tcg_abort();
    }
#if defined(CONFIG_SOFTMMU)
    
    *label2_ptr = (INSN_OP(0) | INSN_COND(COND_A, 0) | INSN_OP2(0x2) |
                   INSN_OFF22((unsigned long)VAR_0->code_ptr -
                              (unsigned long)label2_ptr));
}
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; #if defined(CONFIG_SOFTMMU)
uint32_t *label1_ptr, *label2_ptr; VAR_4 = *VAR_1++; VAR_3 = *VAR_1++; VAR_8 = *VAR_1; VAR_9 = VAR_2 & 3; VAR_5 = TCG_REG_O0; VAR_6 = TCG_REG_O1; VAR_7 = TCG_REG_O2; #if defined(CONFIG_SOFTMMU)
tcg_out_arithi(VAR_0, VAR_6, VAR_3, TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS,
SHIFT_SRL); tcg_out_arithi(VAR_0, VAR_5, VAR_3, TARGET_PAGE_MASK | ((1 << VAR_9) - 1),
ARITH_AND); tcg_out_andi(VAR_0, VAR_6, (CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS); tcg_out_addi(VAR_0, VAR_6, offsetof(CPUState,
tlb_table[VAR_8][0].addr_read)); tcg_out_arith(VAR_0, VAR_6, TCG_AREG0, VAR_6, ARITH_ADD); tcg_out32(VAR_0, TARGET_LD_OP | INSN_RD(VAR_7) | INSN_RS1(VAR_6) |
INSN_RS2(TCG_REG_G0)); tcg_out_arith(VAR_0, TCG_REG_G0, VAR_5, VAR_7, ARITH_SUBCC); label1_ptr = (uint32_t *)VAR_0->code_ptr; tcg_out32(VAR_0, 0); tcg_out_mov(VAR_0, VAR_5, VAR_3); tcg_out_movi(VAR_0, TCG_TYPE_I32, VAR_6, VAR_8); tcg_out32(VAR_0, CALL | ((((tcg_target_ulong)qemu_ld_helpers[VAR_9]
- (tcg_target_ulong)VAR_0->code_ptr) >> 2)
& 0x3fffffff)); tcg_out_ldst(VAR_0, TCG_AREG0, TCG_REG_CALL_STACK,
TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_ST_OP); tcg_out_ldst(VAR_0, TCG_AREG0, TCG_REG_CALL_STACK,
TCG_TARGET_CALL_STACK_OFFSET - sizeof(long), HOST_LD_OP); switch(VAR_2) { case 0 | 4:
tcg_out_arithi(VAR_0, VAR_4, VAR_5, (int)sizeof(tcg_target_long) * 8 - 8,
HOST_SLL_OP); tcg_out_arithi(VAR_0, VAR_4, VAR_4,
(int)sizeof(tcg_target_long) * 8 - 8, HOST_SRA_OP); break; case 1 | 4:
tcg_out_arithi(VAR_0, VAR_4, VAR_5,
(int)sizeof(tcg_target_long) * 8 - 16, HOST_SLL_OP); tcg_out_arithi(VAR_0, VAR_4, VAR_4,
(int)sizeof(tcg_target_long) * 8 - 16, HOST_SRA_OP); break; case 2 | 4:
tcg_out_arithi(VAR_0, VAR_4, VAR_5, 32, HOST_SLL_OP); tcg_out_arithi(VAR_0, VAR_4, VAR_4, 32, HOST_SRA_OP); break; case 0:
case 1:
case 2:
case 3:
default:
tcg_out_mov(VAR_0, VAR_4, VAR_5); break; } label2_ptr = (uint32_t *)VAR_0->code_ptr; tcg_out32(VAR_0, 0); tcg_out_nop(VAR_0); *label1_ptr = (INSN_OP(0) | INSN_COND(COND_E, 0) | INSN_OP2(0x2) |
INSN_OFF22((unsigned long)VAR_0->code_ptr -
(unsigned long)label1_ptr)); tcg_out_ldst(VAR_0, VAR_6, VAR_6, offsetof(CPUTLBEntry, addend) -
offsetof(CPUTLBEntry, addr_read), HOST_LD_OP); tcg_out_arith(VAR_0, VAR_5, VAR_3, VAR_6, ARITH_ADD); VAR_5 = VAR_3; switch(VAR_2) { case 0:
tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDUB); break; case 0 | 4:
tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDSB); break; case 1:
#ifdef TARGET_WORDS_BIGENDIAN
tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDUH); tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDUHA, ASI_PRIMARY_LITTLE); break; case 1 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDSH); tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDSHA, ASI_PRIMARY_LITTLE); break; case 2:
#ifdef TARGET_WORDS_BIGENDIAN
tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDUW); tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDUWA, ASI_PRIMARY_LITTLE); break; case 2 | 4:
#ifdef TARGET_WORDS_BIGENDIAN
tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDSW); tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDSWA, ASI_PRIMARY_LITTLE); break; case 3:
#ifdef TARGET_WORDS_BIGENDIAN
tcg_out_ldst(VAR_0, VAR_4, VAR_5, 0, LDX); tcg_out_ldst_asi(VAR_0, VAR_4, VAR_5, 0, LDXA, ASI_PRIMARY_LITTLE); break; default:
tcg_abort(); } #if defined(CONFIG_SOFTMMU)
*label2_ptr = (INSN_OP(0) | INSN_COND(COND_A, 0) | INSN_OP2(0x2) |
INSN_OFF22((unsigned long)VAR_0->code_ptr -
(unsigned long)label2_ptr)); }