mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-25 00:01:26 +02:00
Some code in FEX's Arm64 emitter was making an assumption that once SpillStaticRegs was called that it was safe to still use the SRA register state. This wasn't actually true since FEX was using one SRA register to optimize FPR stores. Assuming that the SRA registers were safe to use since they were just saved and no longer necessary. Correct this assumption hell by forcing users of the function to provide the temporary register directly. In all cases the users have a temporary available that it can use. Probably fixes some very weird edge case bugs.