OSDN Git Service

target/arm/helper: Check SCR_EL3.{NSE, NS} encoding for AT instructions
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Tue, 22 Aug 2023 16:31:13 +0000 (17:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:13 +0000 (17:31 +0100)
commit1acd00ef14101434cd99df0b01b32f62255423a9
treed53dd0e706a5c5d69ea6da3a278ce61e413d1d29
parente1ee56ec2383fcc6c1bab613e783a0c190fc0ea7
target/arm/helper: Check SCR_EL3.{NSE, NS} encoding for AT instructions

The AT instruction is UNDEFINED if the {NSE,NS} configuration is
invalid. Add a function to check this on all AT instructions that apply
to an EL lower than 3.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-id: 20230809123706.1842548-6-jean-philippe@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c