early-access version 2612

This commit is contained in:
pineappleEA
2022-03-26 22:26:50 +01:00
parent 3996303be5
commit 7770034e0c
8 changed files with 8 additions and 66 deletions

View File

@@ -563,6 +563,9 @@ ResultCode KPageTable::UnmapProcessMemory(VAddr dst_addr, std::size_t size,
block_manager->Update(dst_addr, num_pages, KMemoryState::Free, KMemoryPermission::None,
KMemoryAttribute::None);
// Invalidate CPU cache, as code may have been patched by the guest app.
system.InvalidateCpuInstructionCaches();
return ResultSuccess;
}

View File

@@ -322,7 +322,7 @@ struct Memory::Impl {
}
if (Settings::IsFastmemEnabled()) {
const bool is_read_enable = !Settings::IsGPULevelExtreme() || !cached;
const bool is_read_enable = Settings::IsGPULevelHigh() || !cached;
system.DeviceMemory().buffer.Protect(vaddr, size, is_read_enable, !cached);
}