diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp index a276e6b728..1aab34e7ee 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp @@ -200,6 +200,14 @@ namespace CPUCompare asm_routines.Init(); } + void Jit64::ClearCache() + { + blocks.Clear(); + trampolines.ClearCodeSpace(); + ClearCodeSpace(); + } + + void Jit64::Shutdown() { FreeCodeSpace(); diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit.h b/Source/Core/Core/Src/PowerPC/Jit64/Jit.h index 909aa8617b..0a54dc5ef5 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit.h +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit.h @@ -168,11 +168,7 @@ public: void NotifyBreakpoint(u32 em_address, bool set); - void ClearCache() - { - blocks.Clear(); - trampolines.ClearCodeSpace(); - } + void ClearCache(); // Run!