mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 18:29:08 +01:00
KPageTable: Perform ranged invalidation when unmapping code memory
Co-Authored-By: Fernando S. <1731197+FernandoS27@users.noreply.github.com>
This commit is contained in:
parent
44c73cfca0
commit
50384e2619
1 changed files with 2 additions and 0 deletions
|
@ -363,6 +363,8 @@ ResultCode KPageTable::UnmapProcessCodeMemory(VAddr dst_addr, VAddr src_addr, st
|
||||||
block_manager->Update(src_addr, num_pages, KMemoryState::Normal,
|
block_manager->Update(src_addr, num_pages, KMemoryState::Normal,
|
||||||
KMemoryPermission::ReadAndWrite);
|
KMemoryPermission::ReadAndWrite);
|
||||||
|
|
||||||
|
system.InvalidateCpuInstructionCacheRange(dst_addr, size);
|
||||||
|
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue