]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/internals.h
target/arm: Replace MTEDESC ESIZE+TSIZE with SIZEM1
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 16 Apr 2021 18:31:02 +0000 (11:31 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 30 Apr 2021 10:16:49 +0000 (11:16 +0100)
commit28f3250306e52ae94df9faab93b9d0167fe6b587
tree1d1c656f826d02a34006350aab96edb8b7790402
parent09641ef93112c45bc32cf86a4999d0e0532909c3
target/arm: Replace MTEDESC ESIZE+TSIZE with SIZEM1

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.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210416183106.1516563-6-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/internals.h
target/arm/mte_helper.c
target/arm/translate-a64.c
target/arm/translate-sve.c