mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
SPU: fix event count with ACK and mask write
This commit is contained in:
parent
1c89f8a855
commit
a776f15557
1 changed files with 4 additions and 4 deletions
|
@ -5335,7 +5335,7 @@ bool spu_thread::set_ch_value(u32 ch, u32 value)
|
||||||
|
|
||||||
case SPU_WrEventMask:
|
case SPU_WrEventMask:
|
||||||
{
|
{
|
||||||
get_events(value);
|
get_events(value | static_cast<u32>(ch_events.load().mask));
|
||||||
|
|
||||||
if (ch_events.atomic_op([&](ch_events_t& events)
|
if (ch_events.atomic_op([&](ch_events_t& events)
|
||||||
{
|
{
|
||||||
|
@ -5347,7 +5347,7 @@ bool spu_thread::set_ch_value(u32 ch, u32 value)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return !!events.count;
|
||||||
}))
|
}))
|
||||||
{
|
{
|
||||||
// Check interrupts in case count is 1
|
// Check interrupts in case count is 1
|
||||||
|
@ -5363,7 +5363,7 @@ bool spu_thread::set_ch_value(u32 ch, u32 value)
|
||||||
case SPU_WrEventAck:
|
case SPU_WrEventAck:
|
||||||
{
|
{
|
||||||
// "Collect" events before final acknowledgment
|
// "Collect" events before final acknowledgment
|
||||||
get_events(value);
|
get_events(value | static_cast<u32>(ch_events.load().mask));
|
||||||
|
|
||||||
bool freeze_dec = false;
|
bool freeze_dec = false;
|
||||||
|
|
||||||
|
@ -5379,7 +5379,7 @@ bool spu_thread::set_ch_value(u32 ch, u32 value)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return !!events.count;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!is_dec_frozen && freeze_dec)
|
if (!is_dec_frozen && freeze_dec)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue