Skip to content
Snippets Groups Projects
Commit 7e3dd9f8 authored by Damien George's avatar Damien George
Browse files

py/asmthumb: Detect presence of I-cache using CMSIS macro.

Fixes issue #4113.
parent 30a45360
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ void asm_thumb_end_pass(asm_thumb_t *as) {
(void)as;
// could check labels are resolved...
#if defined(MCU_SERIES_F7)
#if __ICACHE_PRESENT == 1
if (as->base.pass == MP_ASM_PASS_EMIT) {
// flush D-cache, so the code emitted is stored in memory
MP_HAL_CLEAN_DCACHE(as->base.code_base, as->base.code_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment