From 80116f496610d956335c8e2341becc22038f628e Mon Sep 17 00:00:00 2001 From: hrydgard Date: Mon, 19 Jan 2009 19:01:40 +0000 Subject: [PATCH] Seems I screwed up the JIT cache clearing a while ago. This should fix it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1936 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp | 8 ++++++++ Source/Core/Core/Src/PowerPC/Jit64/Jit.h | 6 +----- 2 files changed, 9 insertions(+), 5 deletions(-) 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!