OSDN Git Service

target/arm: Validate tlbi TG matches translation granule in use
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Mar 2022 21:59:54 +0000 (11:59 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 2 Mar 2022 19:27:37 +0000 (19:27 +0000)
commit3974ff93a7632739189ed6fce374cd9c16b525fc
tree644d991e58e2988b84beda281c1701f18fde67ab
parentd976de218c534735e307fc4a6c03e3ae764fd419
target/arm: Validate tlbi TG matches translation granule in use

For FEAT_LPA2, we will need other ARMVAParameters, which themselves
depend on the translation granule in use.  We might as well validate
that the given TG matches; the architecture "does not require that
the instruction invalidates any entries" if this is not true.

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