mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Fixup GCM unmap event sending
This commit is contained in:
parent
17e78a9e6f
commit
0e31aafc09
1 changed files with 3 additions and 1 deletions
|
@ -3543,9 +3543,11 @@ namespace rsx
|
||||||
hle_lock = std::unique_lock{cfg.gcmio_mutex};
|
hle_lock = std::unique_lock{cfg.gcmio_mutex};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int bit = 0;
|
||||||
|
|
||||||
while (to_unmap)
|
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);
|
to_unmap &= ~(1ull << bit);
|
||||||
|
|
||||||
constexpr u16 null_entry = 0xFFFF;
|
constexpr u16 null_entry = 0xFFFF;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue