Skip to content

Commit

Permalink
ps1: invalidate single blocks rather than entire pools (recompiler)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Dec 18, 2024
1 parent 3b18a3f commit 5bcef47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ares/ps1/cpu/cpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,11 @@ struct CPU : Thread {
}

auto invalidate(u32 address) -> void {
pools[address >> 8 & 0x1fffff] = nullptr;
auto pool = pools[address >> 8 & 0x1fffff];
if(!pool) return;
memory::jitprotect(false);
pool->blocks[address >> 2 & 0x3f] = nullptr;
memory::jitprotect(true);
}

auto pool(u32 address) -> Pool*;
Expand Down

0 comments on commit 5bcef47

Please sign in to comment.