mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-19 07:47:38 -05:00
When BindToRegister is called, the register cache marks the relevant guest register as no longer containing an immediate. However, subfcx was calling GetImm after BindToRegister. This led to a lot of panic alerts after2995aa5be4added an assert to GetImm to check that the passed-in register is an immediate. Both before and after2995aa5be4, the actual value of the immediate wasn't overwritten by BindForRegister, only the fact that the register is an immediate. Because of this, the emitted code happened to work correctly.