Skip to content

Commit

Permalink
Merge pull request #6580 from lioncash/dspjitreg
Browse files Browse the repository at this point in the history
DSPJitRegCache: Remove unnecessary casts in FlushRegs()
  • Loading branch information
JosJuice committed Apr 1, 2018
2 parents d8dd7b9 + fe9d989 commit 3187d1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,21 +293,21 @@ void DSPJitRegCache::FlushRegs(DSPJitRegCache& cache, bool emit)
for (size_t i = 0; i < m_xregs.size(); i++)
{
ASSERT_MSG(DSPLLE, m_xregs[i].guest_reg == cache.m_xregs[i].guest_reg,
"cache and current xreg guest_reg mismatch for %u", static_cast<u32>(i));
"cache and current xreg guest_reg mismatch for %zu", i);
}

for (size_t i = 0; i < m_regs.size(); i++)
{
ASSERT_MSG(DSPLLE, m_regs[i].loc.IsImm() == cache.m_regs[i].loc.IsImm(),
"cache and current reg loc mismatch for %i", static_cast<u32>(i));
"cache and current reg loc mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].loc.GetSimpleReg() == cache.m_regs[i].loc.GetSimpleReg(),
"cache and current reg loc mismatch for %i", static_cast<u32>(i));
"cache and current reg loc mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].dirty || !cache.m_regs[i].dirty,
"cache and current reg dirty mismatch for %i", static_cast<u32>(i));
"cache and current reg dirty mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].used == cache.m_regs[i].used,
"cache and current reg used mismatch for %i", static_cast<u32>(i));
"cache and current reg used mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].shift == cache.m_regs[i].shift,
"cache and current reg shift mismatch for %i", static_cast<u32>(i));
"cache and current reg shift mismatch for %zu", i);
}

m_use_ctr = cache.m_use_ctr;
Expand Down

0 comments on commit 3187d1d

Please sign in to comment.