Skip to content

Commit 7e3dd9f

Browse files
committed
py/asmthumb: Detect presence of I-cache using CMSIS macro.
Fixes issue micropython#4113.
1 parent 30a4536 commit 7e3dd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/asmthumb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void asm_thumb_end_pass(asm_thumb_t *as) {
5151
(void)as;
5252
// could check labels are resolved...
5353

54-
#if defined(MCU_SERIES_F7)
54+
#if __ICACHE_PRESENT == 1
5555
if (as->base.pass == MP_ASM_PASS_EMIT) {
5656
// flush D-cache, so the code emitted is stored in memory
5757
MP_HAL_CLEAN_DCACHE(as->base.code_base, as->base.code_size);

0 commit comments

Comments
 (0)