Skip to content

Commit

Permalink
[AArch64] Flush registers from register cache if they won't be used a…
Browse files Browse the repository at this point in the history
…gain.

This requires PR dolphin-emu#1705 and dolphin-emu#1723 prior to merging.
  • Loading branch information
Sonicadvance1 committed Dec 20, 2014
1 parent 31bc510 commit 2171e30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/Core/PowerPC/JitArm64/Jit.cpp
Expand Up @@ -271,6 +271,10 @@ const u8* JitArm64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitB

JitArm64Tables::CompileInstruction(ops[i]);

// If we have a register that will never be used again, flush it.
for (int j : ~ops[i].gprInUse)
gpr.StoreRegister(j);

if (js.memcheck && (opinfo->flags & FL_LOADSTORE))
{
// Don't do this yet
Expand Down

0 comments on commit 2171e30

Please sign in to comment.