Revision 95f9397c target-sparc/translate.c

b/target-sparc/translate.c
1641 1641
#ifdef TARGET_SPARC64
1642 1642
static inline TCGv gen_get_asi(int insn, TCGv r_addr)
1643 1643
{
1644
    int asi, offset;
1644
    int asi;
1645 1645
    TCGv r_asi;
1646 1646

  
1647 1647
    if (IS_IMM) {
1648 1648
        r_asi = tcg_temp_new(TCG_TYPE_I32);
1649
        offset = GET_FIELD(insn, 25, 31);
1650
        tcg_gen_addi_tl(r_addr, r_addr, offset);
1651 1649
        tcg_gen_ld_i32(r_asi, cpu_env, offsetof(CPUSPARCState, asi));
1652 1650
    } else {
1653 1651
        asi = GET_FIELD(insn, 19, 26);

Also available in: Unified diff