Skip to content

Commit

Permalink
Add (experimental) support for Cortex-M33
Browse files Browse the repository at this point in the history
  • Loading branch information
marbre committed Nov 3, 2023
1 parent 8cac986 commit c69acf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_tools/cmake/arm-none-eabi-gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ elseif(ARM_CPU STREQUAL "cortex-m7")
endif()
elseif(ARM_CPU STREQUAL "cortex-m55")
set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -mthumb -mcpu=cortex-m55 -mfloat-abi=softfp")
elseif(ARM_CPU STREQUAL "cortex-m33")
set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -mthumb -march=armv8-m.main -mfloat-abi=hard -mfpu=fpv5-sp-d16")
endif()

set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -DIREE_TIME_NOW_FN=\"\{ return 0; \}\" -DIREE_WAIT_UNTIL_FN=wait_until")
Expand All @@ -96,6 +98,9 @@ set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -Wl,--gc-sections -ffunction-secti
if(ARM_CPU STREQUAL "cortex-m55")
set(IREE_LLVM_TARGET_TRIPLE "armv8.1m.main-pc-linux-elf")
set(IREE_LLVM_TARGET_FLOAT_ABI "default")
elseif(ARM_CPU STREQUAL "cortex-m33")
set(IREE_LLVM_TARGET_TRIPLE "armv8m.main-pc-linux-elf")
set(IREE_LLVM_TARGET_FLOAT_ABI "hard")
else()
set(IREE_LLVM_TARGET_TRIPLE "armv7em-pc-linux-elf")
set(IREE_LLVM_TARGET_FLOAT_ABI "hard")
Expand Down

0 comments on commit c69acf9

Please sign in to comment.