@@ -162,6 +162,8 @@ elseif(CPU STREQUAL "Star-MC1")
162162 set (ARMASM_CPU "--cpu=Star-MC1" )
163163 endif ()
164164 endif ()
165+ elseif (CPU STREQUAL "Star-MC3" )
166+ set (ARMASM_CPU " " )
165167elseif (CPU STREQUAL "Cortex-M35P" )
166168 if (FPU STREQUAL "NO_FPU" )
167169 if (DSP STREQUAL "NO_DSP" )
@@ -400,6 +402,43 @@ elseif(CPU STREQUAL "Cortex-M35P")
400402 set (ARMCLANG_CPU "-mcpu=Cortex-M35P+nodsp -mfpu=none" )
401403 endif ()
402404 endif ()
405+ elseif (CPU STREQUAL "Star-MC3" )
406+ message ("Star-MC3 support using Cortex-M52 compatibility mode." )
407+ set (ARMCLANG_ARCH "armv8.1m.main" )
408+ set (CPU_FEATURES "Cortex-M52" )
409+ if (MVE STREQUAL "NO_MVE" )
410+ if (FPU STREQUAL "NO_FPU" )
411+ set (CPU_FEATURES "${CPU_FEATURES} +nomve+nofp" )
412+ elseif (FPU STREQUAL "SP_FPU" )
413+ set (CPU_FEATURES "${CPU_FEATURES} +nomve+nofp.dp" )
414+ elseif (FPU STREQUAL "DP_FPU" )
415+ set (CPU_FEATURES "${CPU_FEATURES} +nomve" )
416+ endif ()
417+ elseif (MVE STREQUAL "INT_MVE" )
418+ if (FPU STREQUAL "NO_FPU" )
419+ set (CPU_FEATURES "${CPU_FEATURES} +nomve.fp+nofp" )
420+ elseif (FPU STREQUAL "SP_FPU" )
421+ set (CPU_FEATURES "${CPU_FEATURES} +nomve.fp+nofp.dp" )
422+ elseif (FPU STREQUAL "DP_FPU" )
423+ message (FATAL_ERROR "Error: Cortex-M52+nomve.fp is not supported!" )
424+ endif ()
425+ elseif (MVE STREQUAL "FP_MVE" )
426+ if (FPU STREQUAL "NO_FPU" )
427+ message (FATAL_ERROR "Error: Cortex-M52+nofp is not supported!" )
428+ elseif (FPU STREQUAL "SP_FPU" )
429+ message (FATAL_ERROR "Error: Cortex-M52+nofp.dp is not supported!" )
430+ elseif (FPU STREQUAL "DP_FPU" )
431+ set (CPU_FEATURES "${CPU_FEATURES} " )
432+ endif ()
433+ endif ()
434+ if (PACBTI STREQUAL "NO_PACBTI" )
435+ set (CPU_FEATURES "${CPU_FEATURES} +nopacbti" )
436+ endif ()
437+ if (FPU STREQUAL "NO_FPU" )
438+ set (ARMCLANG_CPU "-mcpu=${CPU_FEATURES} " )
439+ else ()
440+ set (ARMCLANG_CPU "-mcpu=${CPU_FEATURES} -mfloat-abi=hard" )
441+ endif ()
403442elseif (CPU STREQUAL "Cortex-M52" )
404443 set (ARMCLANG_ARCH "armv8.1m.main" )
405444 set (CPU_FEATURES "Cortex-M52" )
0 commit comments