target/arm: Check PAGE_WRITE_ORG for MTE writeability
commitff38bca7d633868ac094ef86f3b246e8f57181d4
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Apr 2021 17:40:21 +0000 (6 10:40 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 12 Apr 2021 10:06:24 +0000 (12 11:06 +0100)
tree9fdd6aacfd8368e7ed2ce9eae0244cac229639fa
parenteb42297a59e103500bdd2c352c5b52f54b1c33cd
target/arm: Check PAGE_WRITE_ORG for MTE writeability

We can remove PAGE_WRITE when (internally) marking a page
read-only because it contains translated code.

This can be triggered by tests/tcg/aarch64/bti-2, after
having serviced SIGILL trampolines on the stack.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/mte_helper.c