mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Fixup GCM unmap event sending
This commit is contained in:
parent
17e78a9e6f
commit
65cb85b038
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue