mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 11:15:20 +02:00
Jit: Invalidate after module loads.
Just to be safe, let's invalidate the entire range.
This commit is contained in:
@@ -757,6 +757,9 @@ void Module::Cleanup() {
|
||||
Memory::Write_U32(MIPS_MAKE_BREAK(1), nm.text_addr + i);
|
||||
}
|
||||
Memory::Memset(nm.text_addr + nm.text_size, -1, nm.data_size + nm.bss_size);
|
||||
|
||||
// Let's also invalidate, just to make sure it's cleared out for any future data.
|
||||
currentMIPS->InvalidateICache(memoryBlockAddr, memoryBlockSize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -959,6 +962,8 @@ static Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, bool fromT
|
||||
module->memoryBlockAddr = reader.GetVaddr();
|
||||
module->memoryBlockSize = reader.GetTotalSize();
|
||||
|
||||
currentMIPS->InvalidateICache(module->memoryBlockAddr, module->memoryBlockSize);
|
||||
|
||||
SectionID sceModuleInfoSection = reader.GetSectionByName(".rodata.sceModuleInfo");
|
||||
PspModuleInfo *modinfo;
|
||||
if (sceModuleInfoSection != -1)
|
||||
|
||||
Reference in New Issue
Block a user