Skip to content

Commit a5876f4

Browse files
committed
fix compile error on boards with inline asm
1 parent a703561 commit a5876f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/emitglue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void mp_emit_glue_assign_native(mp_raw_code_t *rc, mp_raw_code_kind_t kind, void
112112
// so that the generated native code which was created in data RAM will
113113
// be available for execution from instruction RAM.
114114
#if MICROPY_EMIT_THUMB || MICROPY_EMIT_INLINE_THUMB
115-
#if __ICACHE_PRESENT == 1
115+
#if defined(__ICACHE_PRESENT) && __ICACHE_PRESENT == 1
116116
// Flush D-cache, so the code emitted is stored in RAM.
117117
MP_HAL_CLEAN_DCACHE(fun_data, fun_len);
118118
// Invalidate I-cache, so the newly-created code is reloaded from RAM.

0 commit comments

Comments
 (0)