IopMem: Fix incorrect memory pointer

Was pointing into rec space instead of the data space.
This commit is contained in:
Stenzek 2023-10-14 16:34:02 +10:00 committed by Connor McLaughlin
parent e5cb313d92
commit d8774d2f5a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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;