[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 08/14] tcg/arm: Simplify usage of encode_imm
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 08/14] tcg/arm: Simplify usage of encode_imm |
Date: |
Fri, 20 Aug 2021 12:50:37 +0100 |
On Wed, 18 Aug 2021 at 22:38, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> We have already computed the rotated value of the imm8
> portion of the complete imm12 encoding. No sense leaving
> the combination of rot + rotation to the caller.
>
> Create an encode_imm12_nofail helper that performs an assert.
>
> This removes the final use of the local "rotl" function,
> which duplicated our generic "rol32" function.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> tcg/arm/tcg-target.c.inc | 141 +++++++++++++++++++++------------------
> 1 file changed, 77 insertions(+), 64 deletions(-)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- Re: [PATCH v3 05/14] tcg/arm: Examine QEMU_TCG_DEBUG environment variable, (continued)
- [PATCH v3 06/14] tcg/arm: Support unaligned access for softmmu, Richard Henderson, 2021/08/18
- [PATCH v3 07/14] tcg/arm: Split out tcg_out_ldstm, Richard Henderson, 2021/08/18
- [PATCH v3 02/14] tcg/arm: Standardize on tcg_out_<branch>_{reg,imm}, Richard Henderson, 2021/08/18
- [PATCH v3 08/14] tcg/arm: Simplify usage of encode_imm, Richard Henderson, 2021/08/18
- Re: [PATCH v3 08/14] tcg/arm: Simplify usage of encode_imm,
Peter Maydell <=
- [PATCH v3 09/14] tcg/arm: Drop inline markers, Richard Henderson, 2021/08/18
- [PATCH v3 10/14] tcg/arm: Give enum arm_cond_code_e a typedef and use it, Richard Henderson, 2021/08/18
- [PATCH v3 13/14] tcg/arm: Reserve a register for guest_base, Richard Henderson, 2021/08/18
- [PATCH v3 12/14] tcg/arm: More use of the TCGReg enum, Richard Henderson, 2021/08/18