From a542fa85d6537550e9bb14c8e0b49fecc17881de Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 31 Jul 2021 13:29:02 +1000 Subject: [PATCH] CPU/CodeCache: Fix crash when switching from interpreter to recompiler --- src/core/cpu_code_cache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/cpu_code_cache.cpp b/src/core/cpu_code_cache.cpp index 6a6b1cb78..cea715719 100644 --- a/src/core/cpu_code_cache.cpp +++ b/src/core/cpu_code_cache.cpp @@ -490,8 +490,9 @@ void Reinitialize() if (g_settings.IsUsingFastmem() && !InitializeFastmem()) Panic("Failed to initialize fastmem"); - ResetFastMap(); + AllocateFastMap(); CompileDispatcher(); + ResetFastMap(); } #endif }