IopMem: Fix incorrect memory pointer

Was pointing into rec space instead of the data space.
This commit is contained in:
Stenzek authored and Connor McLaughlin committed 2023-10-14 17:01:33 +10:00
1 parent e5cb313d92
commit d8774d2f5a
2 files changed
+2 -2

No files matched your search

+1 -1
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()
+1 -1
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;