[PATCH 02/14] target/s390x: Convert op_ld8u to op_ld
Richard Henderson <[email protected]> Fri, 31 Jul 2026 11:56:15 -0700
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Richard Henderson <[email protected]> --- target/s390x/tcg/translate.c | 6 ------ target/s390x/tcg/insn-data.h.inc | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 25a7842409..055e163837 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -2755,12 +2755,6 @@ static DisasJumpType op_ld(DisasContext *s, DisasOps *o) return DISAS_NEXT; } -static DisasJumpType op_ld8u(DisasContext *s, DisasOps *o) -{ - tcg_gen_qemu_ld_i64(o->out, o->in2, get_mem_index(s), MO_UB); - return DISAS_NEXT; -} - static DisasJumpType op_ld16s(DisasContext *s, DisasOps *o) { tcg_gen_qemu_ld_i64(o->out, o->in2, get_mem_index(s), MO_BESW); diff --git a/target/s390x/tcg/insn-data.h.inc b/target/s390x/tcg/insn-data.h.inc index 989e40ce34..865ef23ebd 100644 --- a/target/s390x/tcg/insn-data.h.inc +++ b/target/s390x/tcg/insn-data.h.inc @@ -523,10 +523,10 @@ /* LOAD LOGICAL CHARACTER */ C(0xb994, LLCR, RRE, EI, 0, r2_8u, 0, r1_32, mov2, 0) C(0xb984, LLGCR, RRE, EI, 0, r2_8u, 0, r1, mov2, 0) - C(0xe394, LLC, RXY_a, EI, 0, a2, new, r1_32, ld8u, 0) - C(0xe390, LLGC, RXY_a, Z, 0, a2, r1, 0, ld8u, 0) + D(0xe394, LLC, RXY_a, EI, 0, a2, new, r1_32, ld, 0, MO_UB) + D(0xe390, LLGC, RXY_a, Z, 0, a2, r1, 0, ld, 0, MO_UB) /* LOAD LOGICAL CHARACTER HIGH */ - C(0xe3c2, LLCH, RXY_a, HW, 0, a2, new, r1_32h, ld8u, 0) + D(0xe3c2, LLCH, RXY_a, HW, 0, a2, new, r1_32h, ld, 0, MO_UB) /* LOAD LOGICAL HALFWORD */ C(0xb995, LLHR, RRE, EI, 0, r2_16u, 0, r1_32, mov2, 0) C(0xb985, LLGHR, RRE, EI, 0, r2_16u, 0, r1, mov2, 0) -- 2.43.0