mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
7417efe600
I'm adding a new function to the register cache called GetRegWithPreference. If the passed-in register is unlocked, it gets locked. Otherwise, GetReg is called. The function also has a GetScopedRegWithPreference variant. Then, I'm making JitArm64 call this function when allocating an address register for use with EmitBackpatchRoutine. This way, when register pressure is low we can use the optimal register, and when register pressure is high (but not completely full) we can sacrifice a bit of farcode size for not having to evict a register from the register cache.