KPageTable: Perform ranged invalidation when unmapping code memory

Co-Authored-By: Fernando S. <1731197+FernandoS27@users.noreply.github.com>
master
Morph 2021-10-13 14:21:02 +07:00
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,
KMemoryPermission::ReadAndWrite);
system.InvalidateCpuInstructionCacheRange(dst_addr, size);
return ResultSuccess;
}