summaryrefslogtreecommitdiff
path: root/apps/codecs/spc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/spc.c')
-rw-r--r--apps/codecs/spc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/spc.c b/apps/codecs/spc.c
index 94ac9ffadc..809562e2a0 100644
--- a/apps/codecs/spc.c
+++ b/apps/codecs/spc.c
@@ -295,7 +295,7 @@ static bool emu_thread_process_msg(struct sample_queue_chunk *chunk)
295 if (id == SPC_EMU_LOAD) 295 if (id == SPC_EMU_LOAD)
296 { 296 {
297 struct spc_load *ld = (struct spc_load *)chunk->data; 297 struct spc_load *ld = (struct spc_load *)chunk->data;
298 ci->cpucache_invalidate(); 298 ci->commit_discard_dcache();
299 SPC_Init(&spc_emu); 299 SPC_Init(&spc_emu);
300 sample_queue.retval = SPC_load_spc(&spc_emu, ld->buf, ld->size); 300 sample_queue.retval = SPC_load_spc(&spc_emu, ld->buf, ld->size);
301 301
@@ -368,7 +368,7 @@ static bool spc_emu_start(void)
368static inline int load_spc_buffer(uint8_t *buf, size_t size) 368static inline int load_spc_buffer(uint8_t *buf, size_t size)
369{ 369{
370 struct spc_load ld = { buf, size }; 370 struct spc_load ld = { buf, size };
371 ci->cpucache_flush(); 371 ci->commit_dcache();
372 return emu_thread_send_msg(SPC_EMU_LOAD, (intptr_t)&ld); 372 return emu_thread_send_msg(SPC_EMU_LOAD, (intptr_t)&ld);
373} 373}
374 374
@@ -378,7 +378,7 @@ static inline void spc_emu_quit(void)
378 emu_thread_send_msg(SPC_EMU_QUIT, 0); 378 emu_thread_send_msg(SPC_EMU_QUIT, 0);
379 /* Wait for emu thread to be killed */ 379 /* Wait for emu thread to be killed */
380 ci->thread_wait(emu_thread_id); 380 ci->thread_wait(emu_thread_id);
381 ci->cpucache_invalidate(); 381 ci->commit_discard_dcache();
382 } 382 }
383} 383}
384 384