sys_spu: Don't reset snr config at group_start()

Also first check for EINVAL in sys_spu_thread_set_spu_cfg
This commit is contained in:
eladash 2018-11-19 08:07:44 +02:00 committed by Ivan
parent 6dd96d3db9
commit 95752607ea
3 changed files with 11 additions and 8 deletions

View file

@ -1055,8 +1055,6 @@ void spu_thread::cpu_init()
ch_out_mbox.data.raw() = {};
ch_out_intr_mbox.data.raw() = {};
snr_config = 0;
ch_snr1.data.raw() = {};
ch_snr2.data.raw() = {};
@ -1068,6 +1066,11 @@ void spu_thread::cpu_init()
ch_dec_start_timestamp = get_timebased_time(); // ???
ch_dec_value = 0;
if (offset >= RAW_SPU_BASE_ADDR)
{
snr_config = 0;
}
run_ctrl.raw() = 0;
status.raw() = 0;
npc.raw() = 0;