target/arm: Adjust sve_exception_el
commit60eed0869d68b91eff71cc0a0facb01983726a5d
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 8 Oct 2018 13:55:02 +0000 (8 14:55 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Oct 2018 13:55:02 +0000 (8 14:55 +0100)
tree80a67262527ca5ced48f1f26e66f234e1aab3f22
parent9516d7725ec1deaa6ef5ccc5a26d005650d6c524
target/arm: Adjust sve_exception_el

Check for EL3 before testing CPTR_EL3.EZ.  Return 0 when the exception
should be routed via AdvSIMDFPAccessTrap.  Mirror the structure of
CheckSVEEnabled more closely.

Fixes: 5be5e8eda78
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20181005175350.30752-3-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c