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.
This commit is contained in:
John Chadwick 2015-01-17 01:36:45 -05:00
parent c2bdcbe71c
commit 390ec6977c
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}