[AArch64] Flush FPRs if they won't be used be used the rest of the block.

This commit is contained in:
Ryan Houdek 2015-01-07 14:39:41 -06:00
parent 3fe0b5b969
commit b1169a9773
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ const u8* JitArm64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitB
// If we have a register that will never be used again, flush it. // If we have a register that will never be used again, flush it.
for (int j : ~ops[i].gprInUse) for (int j : ~ops[i].gprInUse)
gpr.StoreRegister(j); gpr.StoreRegister(j);
for (int j : ~ops[i].fprInUse)
fpr.StoreRegister(j);
if (js.memcheck && (opinfo->flags & FL_LOADSTORE)) if (js.memcheck && (opinfo->flags & FL_LOADSTORE))
{ {