summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
diff options
context:
space:
mode:
authorLevi Yun <yeoreum.yun@arm.com>2025-11-06 15:43:14 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-11-14 03:40:12 +0300
commit74467627321735a9d898aa261dccc3c83330d93a (patch)
tree99f5bf4f08d44a3618ffac42287c2d4d1b4ce029 /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
parent1c74842bd07a48070d1cf3458f0b6b377e3ec8b9 (diff)
downloadedk2-74467627321735a9d898aa261dccc3c83330d93a.tar.xz
MdePkg,UefiCpuPkg: fix wrong DS bit and add helper to check it
In FEAT_LPA2, the location of the DS bit in TCR_EL2 depending on the value of HCR_EL2.E2H: 1. When HCR_EL2.E2H = 0, the DS bit is located at bit 32 in TCR_EL2. 2. When HCR_EL2.E2H = 1 (EL0&2), the DS bit is located at bit 59 in TCR_EL2, which matches its position in TCR_EL1. However, the current implementation checks only bit 59 to determine whether LPA2 is enabled, even when HCR_EL2.E2H is not set. To address this issue, this change adds the necessary definitions and a helper function to correctly check whether LPA2 is enabled. Continuous-integration-options: PatchCheck.ignore-multi-package Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
0 files changed, 0 insertions, 0 deletions