4 Jan
2025
4 Jan
'25
5:04 a.m.
Dmitry Timoshkov (@dmitry) commented about dlls/ntdll/unix/signal_arm64.c:
static void ill_handler( int signal, siginfo_t *siginfo, void *sigcontext ) { EXCEPTION_RECORD rec = { EXCEPTION_ILLEGAL_INSTRUCTION }; + ucontext_t *context = sigcontext; + + if (!(PSTATE_sig( context ) & 0x10) && /* AArch64 (not WoW) */ + !(PC_sig( context ) & 3)) + { + ULONG instr = *(ULONG *)PC_sig( context ); + /* emulate mrs xN, CurrentEL */ + if ((instr & ~0x1f) == 0xd5384240) { + ULONG reg = inst & 0x1f; Probably should be 'ULONG reg = instr & 0x1f'?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7009#note_91315