target/arm: Fault on invalid TCR_ELx.TxSZ
commitebf93ce7c07b91eecf8b00cd2218bc0be99d7f6c
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Mar 2022 21:59:43 +0000 (1 11:59 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 2 Mar 2022 19:27:36 +0000 (2 19:27 +0000)
treefeba9c0c20b63da946fce02b844711b89d55d52a
parent691f1ffdfc446acc1a9f0831fcced5012f6de52a
target/arm: Fault on invalid TCR_ELx.TxSZ

Without FEAT_LVA, the behaviour of programming an invalid value
is IMPLEMENTATION DEFINED.  With FEAT_LVA, programming an invalid
minimum value requires a Translation fault.

It is most self-consistent to choose to generate the fault always.

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