[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 24/28] target/sh4: Improve swap.b translation
From: |
Peter Maydell |
Subject: |
Re: [PATCH 24/28] target/sh4: Improve swap.b translation |
Date: |
Mon, 21 Jun 2021 16:16:46 +0100 |
On Mon, 14 Jun 2021 at 09:54, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Remove TCG_BSWAP_IZ and the preceding zero-extension.
>
> Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/sh4/translate.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/target/sh4/translate.c b/target/sh4/translate.c
> index 147219759b..f45515952f 100644
> --- a/target/sh4/translate.c
> +++ b/target/sh4/translate.c
> @@ -676,8 +676,7 @@ static void _decode_opc(DisasContext * ctx)
> case 0x6008: /* swap.b Rm,Rn */
> {
> TCGv low = tcg_temp_new();
> - tcg_gen_ext16u_i32(low, REG(B7_4));
> - tcg_gen_bswap16_i32(low, low, TCG_BSWAP_IZ | TCG_BSWAP_OZ);
> + tcg_gen_bswap16_i32(low, REG(B7_4), 0);
> tcg_gen_deposit_i32(REG(B11_8), REG(B7_4), low, 0, 16);
> tcg_temp_free(low);
> }
> --
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH 19/28] tcg: Make use of bswap flags in tcg_gen_qemu_st_*, (continued)
- [PATCH 19/28] tcg: Make use of bswap flags in tcg_gen_qemu_st_*, Richard Henderson, 2021/06/14
- [PATCH 25/28] target/mips: Fix gen_mxu_s32ldd_s32lddr, Richard Henderson, 2021/06/14
- [PATCH 27/28] tcg/aarch64: Unset TCG_TARGET_HAS_MEMORY_BSWAP, Richard Henderson, 2021/06/14
- [PATCH 12/28] tcg/s390: Support bswap flags, Richard Henderson, 2021/06/14
- [PATCH 21/28] target/arm: Improve vector REV, Richard Henderson, 2021/06/14
- [PATCH 23/28] target/i386: Improve bswap translation, Richard Henderson, 2021/06/14
- [PATCH 24/28] target/sh4: Improve swap.b translation, Richard Henderson, 2021/06/14
- Re: [PATCH 24/28] target/sh4: Improve swap.b translation,
Peter Maydell <=
- [PATCH 22/28] target/arm: Improve REVSH, Richard Henderson, 2021/06/14
- [PATCH 28/28] tcg/riscv: Remove MO_BSWAP handling, Richard Henderson, 2021/06/14
- [PATCH 26/28] tcg/arm: Unset TCG_TARGET_HAS_MEMORY_BSWAP, Richard Henderson, 2021/06/14
- Re: [PATCH 00/28] tcg: bswap improvements, no-reply, 2021/06/14