[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 07/12] target/arm: Replace MTEDESC ESIZE+TSIZE with SIZEM1
From: |
Alex Bennée |
Subject: |
Re: [PATCH v4 07/12] target/arm: Replace MTEDESC ESIZE+TSIZE with SIZEM1 |
Date: |
Thu, 08 Apr 2021 12:08:10 +0100 |
User-agent: |
mu4e 1.5.11; emacs 28.0.50 |
Richard Henderson <richard.henderson@linaro.org> writes:
> After recent changes, mte_checkN does not use ESIZE,
> and mte_check1 never used TSIZE. We can combine the
> two into a single field: SIZEM1.
>
> Choose to pass size - 1 because size == 0 is never used,
> our immediate need in mte_probe_int is for the address
> of the last byte (ptr + size - 1), and since almost all
> operations are powers of 2, this makes the immediate
> constant one bit smaller.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
- Re: [PATCH v4 04/12] target/arm: Split out mte_probe_int, (continued)
[PATCH v4 05/12] target/arm: Fix unaligned checks for mte_check1, mte_probe1, Richard Henderson, 2021/04/06
[PATCH v4 07/12] target/arm: Replace MTEDESC ESIZE+TSIZE with SIZEM1, Richard Henderson, 2021/04/06
- Re: [PATCH v4 07/12] target/arm: Replace MTEDESC ESIZE+TSIZE with SIZEM1,
Alex Bennée <=
[PATCH v4 06/12] test/tcg/aarch64: Add mte-5, Richard Henderson, 2021/04/06
[PATCH v4 08/12] target/arm: Merge mte_check1, mte_checkN, Richard Henderson, 2021/04/06
[PATCH v4 09/12] target/arm: Rename mte_probe1 to mte_probe, Richard Henderson, 2021/04/06
[PATCH v4 11/12] target/arm: Remove log2_esize parameter to gen_mte_checkN, Richard Henderson, 2021/04/06
[PATCH v4 10/12] target/arm: Simplify sve mte checking, Richard Henderson, 2021/04/06