mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-11 03:00:23 +02:00
Fixes #2560 This was a forgotten member of the context that needs to be saved and restored when jumping around the signal state. When FEX was receiving signals back to back, there was a chance that the signals would ride the edge of having set `InSyscallInfo` in the JIT, which meant the SRA state would get saved once, then another signal would occur with the previous SRA data, saving SRA again. Then when unwinding the frames it would corrupt the SRA registers. This would result in trying to load SRA state that was no longer valid, looking like a crash in the JIT that was hard to see what happens. Should also make Mono games a little less crash happy. Cleans up CPUState memcpy as well, since it was a little weird looking.