Rsp: Fix memory allocation of recompiler memory
This commit is contained in:
parent
6b30c1ae6a
commit
09ef426ac6
|
@ -32,7 +32,7 @@ int AllocateMemory(void)
|
||||||
if (RecompCodeSecondary == nullptr)
|
if (RecompCodeSecondary == nullptr)
|
||||||
{
|
{
|
||||||
RecompCodeSecondary = (uint8_t *)AllocateAddressSpace(0x00200004);
|
RecompCodeSecondary = (uint8_t *)AllocateAddressSpace(0x00200004);
|
||||||
RecompCodeSecondary = (uint8_t *)CommitMemory(RecompCode, 0x00200000, MEM_EXECUTE_READWRITE);
|
RecompCodeSecondary = (uint8_t *)CommitMemory(RecompCodeSecondary, 0x00200000, MEM_EXECUTE_READWRITE);
|
||||||
if (RecompCodeSecondary == nullptr)
|
if (RecompCodeSecondary == nullptr)
|
||||||
{
|
{
|
||||||
g_Notify->DisplayError("Not enough memory for RSP RecompCode Secondary!");
|
g_Notify->DisplayError("Not enough memory for RSP RecompCode Secondary!");
|
||||||
|
@ -43,7 +43,7 @@ int AllocateMemory(void)
|
||||||
if (JumpTables == nullptr)
|
if (JumpTables == nullptr)
|
||||||
{
|
{
|
||||||
JumpTables = (uint8_t *)AllocateAddressSpace(0x1000 * MaxMaps);
|
JumpTables = (uint8_t *)AllocateAddressSpace(0x1000 * MaxMaps);
|
||||||
JumpTables = (uint8_t *)CommitMemory(RecompCode, 0x1000 * MaxMaps, MEM_READWRITE);
|
JumpTables = (uint8_t *)CommitMemory(JumpTables, 0x1000 * MaxMaps, MEM_READWRITE);
|
||||||
if (JumpTables == nullptr)
|
if (JumpTables == nullptr)
|
||||||
{
|
{
|
||||||
g_Notify->DisplayError("Not enough memory for jump table!");
|
g_Notify->DisplayError("Not enough memory for jump table!");
|
||||||
|
|
Loading…
Reference in New Issue