March 12, 2026
11:37 p.m.
Using `personality(PER_LINUX32)` was inspired by a [mailing list thread](https://www.spinics.net/lists/arm-kernel/msg746756.html) about detecting AArch32 support from an AArch64 process in user space. The `personality` call only succeeds when `ID_AA64PFR0_EL1` indicates that the CPU supports AArch32 in EL0 (`system_supports_32bit_el0()` in the kernel). I unfortunately don't have AArch32-capable hardware to test this on, but on AArch64-only CPUs the `personality` call fails as expected. Also, on AArch64-only CPUs this matches the current behavior of Windows 11 which has dropped support for 32-bit ARM on all hardware. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10319