summaryrefslogtreecommitdiff
path: root/apps/codecs/spc.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-12-17 07:27:24 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-12-17 07:27:24 +0000
commit6a67707b5ec3b2c649c401550bb7fdef2b7c8d07 (patch)
treebfe31942a4abbaac09ad0f4226effdcef8bf097e /apps/codecs/spc.c
parent43d7a75369286dc3b39b858df34f66b0b45de34e (diff)
downloadrockbox-6a67707b5ec3b2c649c401550bb7fdef2b7c8d07.tar.gz
rockbox-6a67707b5ec3b2c649c401550bb7fdef2b7c8d07.zip
Commit to certain names for cache coherency APIs and discard the aliases.
Wouldn't surprise me a bit to get some non-green. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31339 a1c6a512-1295-4272-9138-f99709370657
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