mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 17:22:47 +00:00
hle: service: ldr: UnmapCodeMemory BSS only when set.
This commit is contained in:
parent
6123b6ea45
commit
6ac44f3bdc
|
@ -530,9 +530,13 @@ public:
|
||||||
ResultCode UnmapNro(const NROInfo& info) {
|
ResultCode UnmapNro(const NROInfo& info) {
|
||||||
// Each region must be unmapped separately to validate memory state
|
// Each region must be unmapped separately to validate memory state
|
||||||
auto& page_table{system.CurrentProcess()->PageTable()};
|
auto& page_table{system.CurrentProcess()->PageTable()};
|
||||||
CASCADE_CODE(page_table.UnmapCodeMemory(info.nro_address + info.text_size + info.ro_size +
|
|
||||||
info.data_size,
|
if (info.bss_size != 0) {
|
||||||
|
CASCADE_CODE(page_table.UnmapCodeMemory(info.nro_address + info.text_size +
|
||||||
|
info.ro_size + info.data_size,
|
||||||
info.bss_address, info.bss_size));
|
info.bss_address, info.bss_size));
|
||||||
|
}
|
||||||
|
|
||||||
CASCADE_CODE(page_table.UnmapCodeMemory(info.nro_address + info.text_size + info.ro_size,
|
CASCADE_CODE(page_table.UnmapCodeMemory(info.nro_address + info.text_size + info.ro_size,
|
||||||
info.src_addr + info.text_size + info.ro_size,
|
info.src_addr + info.text_size + info.ro_size,
|
||||||
info.data_size));
|
info.data_size));
|
||||||
|
|
Loading…
Reference in a new issue