Skip to content

Commit

Permalink
IopMem: Fix incorrect memory pointer
Browse files Browse the repository at this point in the history
Was pointing into rec space instead of the data space.
  • Loading branch information
stenzek committed Oct 14, 2023
1 parent e5cb313 commit 7694150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pcsx2/IopMem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void iopMemAlloc()

psxMemRLUT = psxMemWLUT + 0x2000; //(uptr*)_aligned_malloc(0x10000 * sizeof(uptr),16);

iopMem = reinterpret_cast<IopVM_MemoryAllocMess*>(SysMemory::GetCodePtr(HostMemoryMap::IOPmemOffset));
iopMem = reinterpret_cast<IopVM_MemoryAllocMess*>(SysMemory::GetIOPMem());
}

void iopMemRelease()
Expand Down
2 changes: 1 addition & 1 deletion pcsx2/VUmicroMem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ alignas(16) VURegs vuRegs[2];

void vuMemAllocate()
{
u8* curpos = SysMemory::GetDataPtr(HostMemoryMap::VUmemOffset);
u8* curpos = SysMemory::GetVUMem();
VU0.Micro = curpos; curpos += VU0_PROGSIZE;
VU0.Mem = curpos; curpos += VU0_MEMSIZE;
VU1.Micro = curpos; curpos += VU1_PROGSIZE;
Expand Down

0 comments on commit 7694150

Please sign in to comment.