Core: Init memory on multiple threads.

Also init volatile at the same time for consistency.
This commit is contained in:
Unknown W. Brackets committed 2021-04-16 00:53:50 -07:00
1 parent 6ee944a0a6
commit 4f96169357
6 files changed
+18 -12

No files matched your search

-9
View File
@@ -391,15 +391,6 @@ void Shutdown() {
DEBUG_LOG(MEMMAP, "Memory system shut down.");
}
void Clear() {
if (m_pPhysicalRAM)
memset(GetPointerUnchecked(PSP_GetKernelMemoryBase()), 0, g_MemorySize);
if (m_pPhysicalScratchPad)
memset(m_pPhysicalScratchPad, 0, SCRATCHPAD_SIZE);
if (m_pPhysicalVRAM1)
memset(m_pPhysicalVRAM1, 0, VRAM_SIZE);
}
bool IsActive() {
return base != nullptr;
}