summary refs log tree commit diff stats
path: root/python/scripts/vendor.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-08-22 17:31:10 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-08-22 17:31:10 +0100
commitd53e25075bd9c89c81ab2bfc45ccbcdc92842b24 (patch)
treea4e41b25e39d6bd71c3f1ad443b772e6e4f687ae /python/scripts/vendor.py
parent3d9ca96221ba7212aacb27ec472f0be703e99a78 (diff)
downloadfocaccia-qemu-d53e25075bd9c89c81ab2bfc45ccbcdc92842b24.tar.gz
focaccia-qemu-d53e25075bd9c89c81ab2bfc45ccbcdc92842b24.zip
target/arm/ptw: Check for block descriptors at invalid levels
The architecture doesn't permit block descriptors at any arbitrary
level of the page table walk; it depends on the granule size which
levels are permitted.  We implemented only a partial version of this
check which assumes that block descriptors are valid at all levels
except level 3, which meant that we wouldn't deliver the Translation
fault for all cases of this sort of guest page table error.

Implement the logic corresponding to the pseudocode
AArch64.DecodeDescriptorType() and AArch64.BlockDescSupported().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230807141514.19075-14-peter.maydell@linaro.org
Diffstat (limited to 'python/scripts/vendor.py')
0 files changed, 0 insertions, 0 deletions