mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Implement vm::page_executable (#6330)
Fixes segfaults when attenpting to set segfaults on non-executable memory.
This commit is contained in:
parent
94d33003a3
commit
3ce18fd960
5 changed files with 15 additions and 17 deletions
|
|
@ -1035,12 +1035,6 @@ 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