From 7011758e83e1e4fabbbbeb825d2a79732a6307dc Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 5 Jul 2015 10:03:04 +0200 Subject: [PATCH] Move misplaced FlushIcache() in Arm64Asm.cpp --- Core/MIPS/ARM64/Arm64Asm.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Core/MIPS/ARM64/Arm64Asm.cpp b/Core/MIPS/ARM64/Arm64Asm.cpp index e4e305247..bc97d3c7c 100644 --- a/Core/MIPS/ARM64/Arm64Asm.cpp +++ b/Core/MIPS/ARM64/Arm64Asm.cpp @@ -191,9 +191,7 @@ void Arm64Jit::GenerateFixedCode() { ABI_PopRegisters(regs_to_save); RET(); - // Don't forget to zap the instruction cache! - FlushIcache(); - + if (false) { std::vector lines = DisassembleArm64(enterCode, GetCodePtr() - enterCode); for (auto s : lines) { @@ -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