]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Make DisasContext.{fp, sve}_access_checked tristate
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Mar 2025 19:04:14 +0000 (11:04 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Mar 2025 12:54:33 +0000 (12:54 +0000)
commit298a04998fa4a6dc977abe9234d98dfcdab98423
treedab74968e909a08f2386d2433a994c7deebc4e71
parente6c38d2ab55d66c74ceade5699e22cabe9058d22
target/arm: Make DisasContext.{fp, sve}_access_checked tristate

The check for fp_excp_el in assert_fp_access_checked is
incorrect.  For SME, with StreamingMode enabled, the access
is really against the streaming mode vectors, and access
to the normal fp registers is allowed to be disabled.
C.f. sme_enabled_check.

Convert sve_access_checked to match, even though we don't
currently check the exception state.

Cc: qemu-stable@nongnu.org
Fixes: 3d74825f4d6 ("target/arm: Add SME enablement checks")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250307190415.982049-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/tcg/translate-a64.c
target/arm/tcg/translate-a64.h
target/arm/tcg/translate.h