Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
target/xtensa: Finish conversion to tcg_gen_qemu_{ld, st}_*
Convert away from the old interface with the implicit
MemOp argument.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230502135741.1158035-9-richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed May 5, 2023
1 parent 0814911 commit f0aca2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/xtensa/translate.c
Expand Up @@ -1549,7 +1549,7 @@ static void translate_dcache(DisasContext *dc, const OpcodeArg arg[],
TCGv_i32 res = tcg_temp_new_i32();

tcg_gen_addi_i32(addr, arg[0].in, arg[1].imm);
tcg_gen_qemu_ld8u(res, addr, dc->cring);
tcg_gen_qemu_ld_i32(res, addr, dc->cring, MO_UB);
}

static void translate_depbits(DisasContext *dc, const OpcodeArg arg[],
Expand Down Expand Up @@ -1726,7 +1726,7 @@ static void translate_l32r(DisasContext *dc, const OpcodeArg arg[],
} else {
tmp = tcg_constant_i32(arg[1].imm);
}
tcg_gen_qemu_ld32u(arg[0].out, tmp, dc->cring);
tcg_gen_qemu_ld_i32(arg[0].out, tmp, dc->cring, MO_TEUL);
}

static void translate_loop(DisasContext *dc, const OpcodeArg arg[],
Expand Down

0 comments on commit f0aca2a

Please sign in to comment.