X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fspu_c64x_dspcode.c;fp=plugins%2Fdfsound%2Fspu_c64x_dspcode.c;h=709519c1d2f06bce73c34396fa2f3e5600e81987;hp=570da5eda44921d4ac9fbe93708e29f655619190;hb=42dde520a83b9c391b41b0eceecb1ce3eaed7e72;hpb=8338889c466f3dc392a7a83598a65dcac8cbcc38 diff --git a/plugins/dfsound/spu_c64x_dspcode.c b/plugins/dfsound/spu_c64x_dspcode.c index 570da5ed..709519c1 100644 --- a/plugins/dfsound/spu_c64x_dspcode.c +++ b/plugins/dfsound/spu_c64x_dspcode.c @@ -114,7 +114,7 @@ static void do_processing(void) // nothing to do? Write out non-critical caches if (dirty) { syscalls.cache_wb(spu.spuMemC + 0x800, 0x800, 1); - syscalls.cache_wb(spu.SB, sizeof(spu.SB[0]) * SB_SIZE * 24, 1); + syscalls.cache_wb(spu.sb_thread, sizeof(spu.sb_thread[0]) * MAXCHAN, 1); if (had_rvb) { left = 0x40000 - spu.rvb->StartAddr; syscalls.cache_wb(spu.spuMem + spu.rvb->StartAddr, left * 2, 1); @@ -143,7 +143,7 @@ static unsigned int exec(dsp_component_cmd_t cmd, InitADSR(); spu.spuMemC = mem->spu_ram; - spu.SB = mem->SB; + spu.sb_thread = mem->sb_thread; spu.s_chan = mem->in.s_chan; spu.rvb = &mem->in.rvb; worker = &mem->worker; @@ -169,7 +169,7 @@ static unsigned int exec(dsp_component_cmd_t cmd, do_processing(); - syscalls.cache_inv(&mem->SB, sizeof(mem->SB), 0); + syscalls.cache_inv(&mem->sb_thread, sizeof(mem->sb_thread), 0); syscalls.cache_inv(&mem->in, sizeof(mem->in), 0); break;