target/arm: Rearrange {sve,fp}_check_access assert
commit8a40fe5f1bf3837ae3f9961efe1d51e7214f2664
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 28 Aug 2020 09:02:47 +0000 (28 10:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Aug 2020 09:02:47 +0000 (28 10:02 +0100)
tree47d5729de37b5253c45e621ddc5df3394490bb88
parent28c4da31be6a5e501b60b77bac17652dd3211378
target/arm: Rearrange {sve,fp}_check_access assert

We want to ensure that access is checked by the time we ask
for a specific fp/vector register.  We want to ensure that
we do not emit two lots of code to raise an exception.

But sometimes it's difficult to cleanly organize the code
such that we never pass through sve_check_access exactly once.
Allow multiple calls so long as the result is true, that is,
no exception to be raised.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20200815013145.539409-5-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/translate-a64.c
target/arm/translate.h