mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #12600 from lioncash/dspreg
DSPJitRegCache: Take DynamicReg instances by reference in FlushRegs()
This commit is contained in:
commit
6ccf35ad4d
@ -258,8 +258,8 @@ void DSPJitRegCache::FlushRegs(DSPJitRegCache& cache, bool emit)
|
|||||||
// free all host regs that are not used for the same guest reg
|
// free all host regs that are not used for the same guest reg
|
||||||
for (size_t i = 0; i < m_regs.size(); i++)
|
for (size_t i = 0; i < m_regs.size(); i++)
|
||||||
{
|
{
|
||||||
const auto reg = m_regs[i];
|
const auto& reg = m_regs[i];
|
||||||
const auto cached_reg = cache.m_regs[i];
|
const auto& cached_reg = cache.m_regs[i];
|
||||||
|
|
||||||
if (cached_reg.loc.GetSimpleReg() != reg.loc.GetSimpleReg() && reg.loc.IsSimpleReg())
|
if (cached_reg.loc.GetSimpleReg() != reg.loc.GetSimpleReg() && reg.loc.IsSimpleReg())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user