In an emulated x86 or x86_64 process on ARM64, GetNativeSystemInfo() should return information as if the native system is x86_64 (assuming x86_64 emulation is supported). This is working correctly for x86 processes, but x86_64 processes are returning PROCESSOR_ARCHITECTURE_ARM64. Fixes test failure when running as x86_64 on ARM64: ``` process.c:2424: Test failed: Expected no difference for wProcessorArchitecture, got 9 and 12 process.c:2427: Test failed: Expected no difference for dwProcessorType, got 8664 and 0 ``` --- I listed all the possibilities to help reason about this. If native_machine is I386: - is_wow64 is FALSE - GetNativeSystemInfo equivalent to GetSystemInfo If native_machine is AMD64, process is I386: - is_wow64 is TRUE - native system info should have processor architecture AMD64 If native_machine is AMD64, process is AMD64: - is_wow64 is FALSE - GetNativeSystemInfo equivalent to GetSystemInfo If native_machine is ARM64, process is ARM64: - is_wow64 is FALSE - GetNativeSystemInfo equivalent to GetSystemInfo If native_machine is ARM64, process is I386: - is_wow64 is TRUE - native system info should have processor architecture AMD64 If native_machine is ARM64, process is AMD64: - is_wow64 is FALSE - GetNativeSystemInfo equivalent to GetSystemInfo -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10210