mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
sys_spu: Fix SNR and Inbound Mailbox state reset
Also remove bugged ESTAT check at sys_spu_thread_write_spu_mb.
This commit is contained in:
parent
739f68271f
commit
b99992d570
3 changed files with 8 additions and 18 deletions
|
@ -1050,14 +1050,9 @@ void spu_thread::cpu_init()
|
|||
ch_stall_stat.data.raw() = {};
|
||||
ch_atomic_stat.data.raw() = {};
|
||||
|
||||
ch_in_mbox.clear();
|
||||
|
||||
ch_out_mbox.data.raw() = {};
|
||||
ch_out_intr_mbox.data.raw() = {};
|
||||
|
||||
ch_snr1.data.raw() = {};
|
||||
ch_snr2.data.raw() = {};
|
||||
|
||||
ch_event_mask.raw() = 0;
|
||||
ch_event_stat.raw() = 0;
|
||||
interrupts_enabled.raw() = false;
|
||||
|
@ -1068,6 +1063,10 @@ void spu_thread::cpu_init()
|
|||
|
||||
if (offset >= RAW_SPU_BASE_ADDR)
|
||||
{
|
||||
ch_in_mbox.clear();
|
||||
ch_snr1.data.raw() = {};
|
||||
ch_snr2.data.raw() = {};
|
||||
|
||||
snr_config = 0;
|
||||
}
|
||||
|
||||
|
@ -1097,6 +1096,7 @@ void spu_thread::cpu_stop()
|
|||
std::lock_guard lock(group->mutex);
|
||||
group->stop_count++;
|
||||
group->run_state = SPU_THREAD_GROUP_STATUS_INITIALIZED;
|
||||
ch_in_mbox.clear();
|
||||
|
||||
if (!group->join_state)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue