[arch][arm-m] Add Cortex M55 support
Add the Cortex M55 as a supported target.
This commit is contained in:
committed by
Travis Geiselbrecht
parent
9165714702
commit
431e409c78
@@ -24,6 +24,8 @@
|
||||
#include <core_cm3.h>
|
||||
#elif ARM_CPU_CORTEX_M4
|
||||
#include <core_cm4.h>
|
||||
#elif ARM_CPU_CORTEX_M55
|
||||
#include <core_cm55.h>
|
||||
#elif ARM_CPU_CORTEX_M7
|
||||
#include <core_cm7.h>
|
||||
#else
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#define CACHE_LINE 32
|
||||
#elif ARM_CPU_CORTEX_M0 || ARM_CPU_CORTEX_M0_PLUS || ARM_CPU_CORTEX_M3 || ARM_CPU_CORTEX_M4
|
||||
#define CACHE_LINE 32 /* doesn't actually matter */
|
||||
#elif ARM_CPU_CORTEX_M55
|
||||
#define CACHE_LINE 32
|
||||
#elif ARM_CPU_CORTEX_M7
|
||||
#define CACHE_LINE 32
|
||||
#elif ARM_CPU_CORTEX_A15
|
||||
|
||||
@@ -69,6 +69,18 @@ HANDLED_CORE := true
|
||||
ENABLE_THUMB := true
|
||||
SUBARCH := arm-m
|
||||
endif
|
||||
ifeq ($(ARM_CPU),cortex-m55)
|
||||
GLOBAL_DEFINES += \
|
||||
ARM_CPU_CORTEX_M55=1 \
|
||||
ARM_ISA_ARMv7=1 \
|
||||
ARM_ISA_ARMv7M=1 \
|
||||
ARM_WITH_THUMB=1 \
|
||||
ARM_WITH_THUMB2=1 \
|
||||
ARM_WITH_CACHE=1
|
||||
HANDLED_CORE := true
|
||||
ENABLE_THUMB := true
|
||||
SUBARCH := arm-m
|
||||
endif
|
||||
ifeq ($(ARM_CPU),cortex-m7)
|
||||
GLOBAL_DEFINES += \
|
||||
ARM_CPU_CORTEX_M7=1 \
|
||||
|
||||
@@ -66,6 +66,9 @@ endif
|
||||
ifeq ($(ARM_CPU),cortex-m4)
|
||||
ARCH_arm_COMPILEFLAGS += -mcpu=$(ARM_CPU)
|
||||
endif
|
||||
ifeq ($(ARM_CPU),cortex-m55)
|
||||
ARCH_arm_COMPILEFLAGS += -mcpu=$(ARM_CPU)
|
||||
endif
|
||||
ifeq ($(ARM_CPU),cortex-m7)
|
||||
# use cortex-m4 for now until better general toolchain support
|
||||
ARCH_arm_COMPILEFLAGS += -mcpu=cortex-m4
|
||||
|
||||
Reference in New Issue
Block a user