arm/ptw: Honour WXN/UWXN and SIF in short-format descriptors
authorPavel Skripkin <paskripkin@gmail.com>
Tue, 19 Nov 2024 13:02:06 +0000 (13:02 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Nov 2024 13:02:06 +0000 (13:02 +0000)
commit0340cb6e319341933443c1b1aee4c7ae816e8f7f
tree27d4e3b2e00571259cd14c22f98c8b942d5cab6b
parent0231bdc8957bcc3ed245c7498e10ee7a95487076
arm/ptw: Honour WXN/UWXN and SIF in short-format descriptors

Currently the handling of page protection in the short-format
descriptor is open-coded. This means that we forgot to update
it to handle some newer architectural features, including:
 * handling of SCTLR.{UWXN,WXN}
 * handling of SCR.SIF

Make the short-format descriptor code call the same get_S1prot()
that we already use for the LPAE descriptor format. This makes
the code simpler and means it now correctly honours the WXN/UWXN
and SIF bits.

Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Message-id: 20241118152537.45277-1-paskripkin@gmail.com
[PMM: fixed a couple of checkpatch nits, tweaked commit message]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/ptw.c