From 390ec6977c5f2dd1b2469303a21c755881cfd16f Mon Sep 17 00:00:00 2001 From: John Chadwick Date: Sat, 17 Jan 2015 01:36:45 -0500 Subject: [PATCH] Increase AsmCommon code space to fix crashes on Linux systems. Revision b058bbd was causing the AsmCommon routines to overrun the code buffer allocated for it. According to Fiora, it happens only on Linux because of the fact that Linux has more caller-save registers than other platforms. --- Source/Core/Core/PowerPC/Jit64/JitAsm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64/JitAsm.h b/Source/Core/Core/PowerPC/Jit64/JitAsm.h index 9d999b558f..cd6e1bde08 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitAsm.h +++ b/Source/Core/Core/PowerPC/Jit64/JitAsm.h @@ -32,7 +32,9 @@ public: void Init(u8* stack_top) { m_stack_top = stack_top; - AllocCodeSpace(8192); + // NOTE: When making large additions to the AsmCommon code, you might + // want to ensure this number is big enough. + AllocCodeSpace(16384); Generate(); WriteProtect(); }