mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 19:00:17 +02:00
CHPE_V2_CPU_AREA_INFO is the mechanism used on ARM64EC to coordinate thread state, suspension and exception handling with the kernel. It's typically set up by ntdll for ARM64EC processes, but Wine uses the TEB pointer without restricting where it's coming from. Set ChpeV2CpuAreaInfo in FEX WOW64 thread initialization. Fixes 32-bit debug events and a number of CPU context handling tests. Reduces the number of wineserver round-trips required for suspend and avoids the need for remote thread creation for inter-process suspends.