mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Dealloc exec cache after sys_prx/overlay_unload_module
Must come before vm::dealloc of it.
This commit is contained in:
parent
3d6c211382
commit
3de885c7a6
2 changed files with 11 additions and 0 deletions
|
|
@ -1036,6 +1036,12 @@ void ppu_unload_prx(const lv2_prx& prx)
|
|||
|
||||
for (auto& seg : prx.segs)
|
||||
{
|
||||
if (seg.flags & 1)
|
||||
{
|
||||
// Segment was considered executable thus needing to free exec data
|
||||
utils::memory_decommit(vm::g_exec_addr + size_t{seg.addr} * 2, size_t{seg.size} * 2);
|
||||
}
|
||||
|
||||
vm::dealloc(seg.addr, vm::main);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue