Skip to content

Commit 8b99504

Browse files
committed
Makefile: Build uVisor for M3, even on M4s
Currently, uVisor builds with `-mcpu=cortex-m4`, even on Cortex M3 CPUs. This can lead to using unavailable instructions. Build uVisor using the least common denominator architecture. This avoids using unavailable instructions when targeting Cortex M3 CPUs.
1 parent a0871b9 commit 8b99504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ ifeq ("$(PROGRAM_VERSION)","")
140140
PROGRAM_VERSION:='unknown'
141141
endif
142142

143-
FLAGS_CM4:=-mcpu=cortex-m4 -march=armv7e-m -mthumb
143+
FLAGS_CM4:=-mcpu=cortex-m3 -march=armv7-m -mthumb
144144

145145
LDFLAGS:=\
146146
$(FLAGS_CM4) \

0 commit comments

Comments
 (0)