mirror of https://github.com/PCSX2/pcsx2.git
Bugfix for Issue 241. Also increased the EErec's stack memory from 64k to 128k, since there's no reason to be frugal there anymore.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1269 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
12e258ac16
commit
5f1cc131c8
|
@ -75,7 +75,7 @@ u32 g_cpuHasConstReg = 0, g_cpuFlushedConstReg = 0;
|
||||||
// Static Private Variables - R5900 Dynarec
|
// Static Private Variables - R5900 Dynarec
|
||||||
|
|
||||||
#define X86
|
#define X86
|
||||||
static const int RECSTACK_SIZE = 0x00010000;
|
static const int RECSTACK_SIZE = 0x00020000;
|
||||||
|
|
||||||
static u8 *recMem = NULL; // the recompiled blocks will be here
|
static u8 *recMem = NULL; // the recompiled blocks will be here
|
||||||
static u8* recStack = NULL; // stack mem
|
static u8* recStack = NULL; // stack mem
|
||||||
|
@ -349,7 +349,9 @@ int _flushUnusedConstReg()
|
||||||
//
|
//
|
||||||
u32* recAllocStackMem(int size, int align)
|
u32* recAllocStackMem(int size, int align)
|
||||||
{
|
{
|
||||||
recStackPtr += align - ((u32)recStackPtr % align);
|
jASSUME( align == 4 || align == 8 || align == 16 );
|
||||||
|
|
||||||
|
recStackPtr = (u8*) ( (((uptr)recStackPtr) + (align-1)) & ~(align-1) );
|
||||||
recStackPtr += size;
|
recStackPtr += size;
|
||||||
return (u32*)(recStackPtr-size);
|
return (u32*)(recStackPtr-size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue