Skip to content

Commit

Permalink
Fixup GCM unmap event sending
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 authored Nov 1, 2024
1 parent 2e0223b commit 5c66191
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpcs3/Emu/RSX/RSXThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3543,9 +3543,11 @@ namespace rsx
hle_lock = std::unique_lock{cfg.gcmio_mutex};
}

int bit = 0;

while (to_unmap)
{
const int bit = (std::countr_zero<u64>(utils::rol64(to_unmap, 0 - bit)) + bit);
bit = (std::countr_zero<u64>(utils::rol64(to_unmap, 0 - bit)) + bit);
to_unmap &= ~(1ull << bit);

constexpr u16 null_entry = 0xFFFF;
Expand Down

0 comments on commit 5c66191

Please sign in to comment.