https://bugs.winehq.org/show_bug.cgi?id=51996
--- Comment #4 from Jinoh Kang jinoh.kang.kr@gmail.com ---
Any chance we would be using sigreturn() directly, though? On select known platforms with stable syscall ABI, of course.
Please disregard my previous comment. Dealing with some unknown sigcontext extensions such as SVE/SVE2 would be a headache. CONTEXT_INTEGER In syscall_frame->restore_flags would be a pretty rare case anyway.