summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-16 01:46:54 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-16 01:50:45 +1000
commit7e3dd9f8a3ece6349b5a50b5801fd5731b0ffe19 (patch)
treec88b20d6904158d94ec0672299e5d329163ecff2 /py
parent30a45360e73481cce312dd7cb2e344504c889a28 (diff)
py/asmthumb: Detect presence of I-cache using CMSIS macro.
Fixes issue #4113.
Diffstat (limited to 'py')
-rw-r--r--py/asmthumb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/asmthumb.c b/py/asmthumb.c
index 6550d9398..555c21a1d 100644
--- a/py/asmthumb.c
+++ b/py/asmthumb.c
@@ -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);