Skip to content

Commit

Permalink
Merge branch 'master' into wii-usb
Browse files Browse the repository at this point in the history
  • Loading branch information
Parlane committed Jan 1, 2013
2 parents 40a6649 + c728ef2 commit 9411c0a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Source/Core/Core/Src/DSP/Jit/DSPJitRegCache.cpp
Expand Up @@ -218,13 +218,12 @@ void DSPJitRegCache::flushRegs(DSPJitRegCache &cache, bool emit)
do {
movcnt = 0;
for(i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++) {
if (cache.regs[i].loc.GetSimpleReg() !=
regs[i].loc.GetSimpleReg() &&
xregs[cache.regs[i].loc.GetSimpleReg()].guest_reg == DSP_REG_NONE)
X64Reg simple = regs[i].loc.GetSimpleReg();
X64Reg simple_cache = cache.regs[i].loc.GetSimpleReg();
if (simple_cache != simple
&& xregs[simple_cache].guest_reg == DSP_REG_NONE)
{
movToHostReg(i,
cache.regs[i].loc.GetSimpleReg(),
true);
movToHostReg(i, simple_cache, true);
movcnt++;
}
}
Expand Down

0 comments on commit 9411c0a

Please sign in to comment.