OSDN Git Service

target/arm: Extend arm_fi_to_lfsc to level -1
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Mar 2022 21:59:51 +0000 (11:59 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 2 Mar 2022 19:27:37 +0000 (19:27 +0000)
commit13e481c9335582fc7eed12e24e8d4d7068b24ff8
tree9f3067dfc1fc44e07a7af082acc3c6d0185f89c8
parent7a928f43d8724bdf0777d7fc67a5ad973a0bf4bf
target/arm: Extend arm_fi_to_lfsc to level -1

With FEAT_LPA2, rather than introducing translation level 4,
we introduce level -1, below the current level 0.  Extend
arm_fi_to_lfsc to handle these faults.

Assert that this new translation level does not leak into
fault types for which it is not defined, which allows some
masking of fi->level to be removed.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220301215958.157011-12-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/internals.h