]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Adjust and validate mtedesc sizem1
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 15 Feb 2024 11:30:44 +0000 (11:30 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 16 Feb 2024 11:01:14 +0000 (14:01 +0300)
commit8da74af97029dc96205ed4ddd53230d6d99c15c3
treec064428f555cd215dda5ce7b62d97a6d4f0cc0bd
parent5e6e09baa516fd7c768cc1050a6ed638574e8047
target/arm: Adjust and validate mtedesc sizem1

When we added SVE_MTEDESC_SHIFT, we effectively limited the
maximum size of MTEDESC.  Adjust SIZEM1 to consume the remaining
bits (32 - 10 - 5 - 12 == 5).  Assert that the data to be stored
fits within the field (expecting 8 * 4 - 1 == 31, exact fit).

Cc: qemu-stable@nongnu.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Gustavo Romero <gustavo.romero@linaro.org>
Message-id: 20240207025210.8837-4-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit b12a7671b6099a26ce5d5ab09701f151e21c112c)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/internals.h
target/arm/tcg/translate-sve.c