From 7694150e4b26b975ac3b336ff9a2f5a1d35d7cad Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 14 Oct 2023 16:34:02 +1000 Subject: [PATCH] IopMem: Fix incorrect memory pointer Was pointing into rec space instead of the data space. --- pcsx2/IopMem.cpp | 2 +- pcsx2/VUmicroMem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/IopMem.cpp b/pcsx2/IopMem.cpp index 49455dea0b503..3f8da49ffabfe 100644 --- a/pcsx2/IopMem.cpp +++ b/pcsx2/IopMem.cpp @@ -39,7 +39,7 @@ void iopMemAlloc() psxMemRLUT = psxMemWLUT + 0x2000; //(uptr*)_aligned_malloc(0x10000 * sizeof(uptr),16); - iopMem = reinterpret_cast(SysMemory::GetCodePtr(HostMemoryMap::IOPmemOffset)); + iopMem = reinterpret_cast(SysMemory::GetIOPMem()); } void iopMemRelease() diff --git a/pcsx2/VUmicroMem.cpp b/pcsx2/VUmicroMem.cpp index 2aea8bc7fe3ca..c0df0fd144498 100644 --- a/pcsx2/VUmicroMem.cpp +++ b/pcsx2/VUmicroMem.cpp @@ -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;