Skip to content

Commit

Permalink
Fix #9680 (#9687)
Browse files Browse the repository at this point in the history
Fix regression from #9680
  • Loading branch information
elad335 committed Jan 30, 2021
1 parent 6b3b06d commit 16c6b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/Cell/PPUThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<lv2_
const std::string firmware_sprx_path = vfs::get("/dev_flash/sys/external/");

// Map fixed address executables area, fake overlay support
const bool had_ovl = !vm::map(0x3000'0000, 0x1000'0000, 0x200).operator bool();
const bool had_ovl = !vm::map(0x3000'0000, 0x1000'0000, 0x202).operator bool();
const u32 ppc_seg = std::exchange(g_ps3_process_info.ppc_seg, 0x3);

std::vector<std::pair<std::string, u64>> file_queue;
Expand Down Expand Up @@ -2337,7 +2337,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<lv2_

if (!had_ovl)
{
vm::unmap(0x3000'0000);
ensure(vm::unmap(0x3000'0000));
}

g_ps3_process_info.ppc_seg = ppc_seg;
Expand Down

0 comments on commit 16c6b44

Please sign in to comment.