Skip to content

Commit

Permalink
Rsp: Fix memory allocation of recompiler memory
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Aug 17, 2023
1 parent 6b30c1a commit 09ef426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Project64-rsp-core/cpu/RspMemory.cpp
Expand Up @@ -32,7 +32,7 @@ int AllocateMemory(void)
if (RecompCodeSecondary == nullptr)
{
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)
{
g_Notify->DisplayError("Not enough memory for RSP RecompCode Secondary!");
Expand All @@ -43,7 +43,7 @@ int AllocateMemory(void)
if (JumpTables == nullptr)
{
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)
{
g_Notify->DisplayError("Not enough memory for jump table!");
Expand Down

0 comments on commit 09ef426

Please sign in to comment.