Move misplaced FlushIcache() in Arm64Asm.cpp

This commit is contained in:
Henrik Rydgard 2015-07-05 10:03:04 +02:00
parent b865070de1
commit 7011758e83

View File

@ -191,8 +191,6 @@ void Arm64Jit::GenerateFixedCode() {
ABI_PopRegisters(regs_to_save);
RET();
// Don't forget to zap the instruction cache!
FlushIcache();
if (false) {
std::vector<std::string> lines = DisassembleArm64(enterCode, GetCodePtr() - enterCode);
@ -215,6 +213,9 @@ void Arm64Jit::GenerateFixedCode() {
RET();
}
// Don't forget to zap the instruction cache! This must stay at the end of this function.
FlushIcache();
}
} // namespace MIPSComp