diff options
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/codec_crt0.c | 4 | ||||
-rw-r--r-- | apps/codecs/mpa.c | 2 | ||||
-rw-r--r-- | apps/codecs/spc.c | 6 |
3 files changed, 5 insertions, 7 deletions
diff --git a/apps/codecs/codec_crt0.c b/apps/codecs/codec_crt0.c index 467e115de9..09b6982246 100644 --- a/apps/codecs/codec_crt0.c +++ b/apps/codecs/codec_crt0.c | |||
@@ -34,8 +34,6 @@ extern unsigned char plugin_end_addr[]; | |||
34 | 34 | ||
35 | extern enum codec_status codec_main(void); | 35 | extern enum codec_status codec_main(void); |
36 | 36 | ||
37 | CACHE_FUNCTION_WRAPPERS(ci); | ||
38 | |||
39 | enum codec_status codec_start(void) | 37 | enum codec_status codec_start(void) |
40 | { | 38 | { |
41 | #ifndef SIMULATOR | 39 | #ifndef SIMULATOR |
@@ -47,7 +45,7 @@ enum codec_status codec_start(void) | |||
47 | #endif | 45 | #endif |
48 | #if NUM_CORES > 1 | 46 | #if NUM_CORES > 1 |
49 | /* writeback cleared iedata and bss areas */ | 47 | /* writeback cleared iedata and bss areas */ |
50 | flush_icache(); | 48 | ci->cpucache_flush(); |
51 | #endif | 49 | #endif |
52 | return codec_main(); | 50 | return codec_main(); |
53 | } | 51 | } |
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 1a0b03c272..1b71bde79e 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c | |||
@@ -268,7 +268,7 @@ static void mad_synth_thread_quit(void) | |||
268 | die=1; | 268 | die=1; |
269 | ci->semaphore_release(&synth_pending_sem); | 269 | ci->semaphore_release(&synth_pending_sem); |
270 | ci->thread_wait(mad_synth_thread_id); | 270 | ci->thread_wait(mad_synth_thread_id); |
271 | invalidate_icache(); | 271 | ci->cpucache_invalidate(); |
272 | } | 272 | } |
273 | #else | 273 | #else |
274 | static inline void mad_synth_thread_ready(void) | 274 | static inline void mad_synth_thread_ready(void) |
diff --git a/apps/codecs/spc.c b/apps/codecs/spc.c index 5ac594431a..6ceb704c7c 100644 --- a/apps/codecs/spc.c +++ b/apps/codecs/spc.c | |||
@@ -302,7 +302,7 @@ static bool emu_thread_process_msg(struct sample_queue_chunk *chunk) | |||
302 | if (id == SPC_EMU_LOAD) | 302 | if (id == SPC_EMU_LOAD) |
303 | { | 303 | { |
304 | struct spc_load *ld = (struct spc_load *)chunk->data; | 304 | struct spc_load *ld = (struct spc_load *)chunk->data; |
305 | invalidate_icache(); | 305 | ci->cpucache_invalidate(); |
306 | SPC_Init(&spc_emu); | 306 | SPC_Init(&spc_emu); |
307 | sample_queue.retval = SPC_load_spc(&spc_emu, ld->buf, ld->size); | 307 | sample_queue.retval = SPC_load_spc(&spc_emu, ld->buf, ld->size); |
308 | 308 | ||
@@ -376,7 +376,7 @@ static bool spc_emu_start(void) | |||
376 | static inline int load_spc_buffer(uint8_t *buf, size_t size) | 376 | static inline int load_spc_buffer(uint8_t *buf, size_t size) |
377 | { | 377 | { |
378 | struct spc_load ld = { buf, size }; | 378 | struct spc_load ld = { buf, size }; |
379 | flush_icache(); | 379 | ci->cpucache_flush(); |
380 | return emu_thread_send_msg(SPC_EMU_LOAD, (intptr_t)&ld); | 380 | return emu_thread_send_msg(SPC_EMU_LOAD, (intptr_t)&ld); |
381 | } | 381 | } |
382 | 382 | ||
@@ -386,7 +386,7 @@ static inline void spc_emu_quit(void) | |||
386 | emu_thread_send_msg(SPC_EMU_QUIT, 0); | 386 | emu_thread_send_msg(SPC_EMU_QUIT, 0); |
387 | /* Wait for emu thread to be killed */ | 387 | /* Wait for emu thread to be killed */ |
388 | ci->thread_wait(emu_thread_id); | 388 | ci->thread_wait(emu_thread_id); |
389 | invalidate_icache(); | 389 | ci->cpucache_invalidate(); |
390 | } | 390 | } |
391 | } | 391 | } |
392 | 392 | ||