arm: add ARM architecture profile detection

Add some logic to detect classic and M-profile cores, and make
this info available to the build system. All existing targets
are classic profile.

Change-Id: I07bfcd418bcaa6297b9bbf889fc189f167147428
This commit is contained in:
Aidan MacDonald 2024-11-14 12:06:27 +00:00 committed by Solomon Peachy
parent 9e79ebf78d
commit 7e8a818d95
2 changed files with 55 additions and 6 deletions

View file

@ -696,7 +696,13 @@ Lyre prototype 1 */
/* define for all cpus from ARM family */
#if ARCH == ARCH_ARM
#define CPU_ARM
#define ARM_ARCH ARCH_VERSION /* ARMv{4,5,6,7} */
#define ARM_ARCH ARCH_VERSION /* ARMv{4,5,6,7} */
#define ARM_PROFILE ARCH_PROFILE /* Classic, Microcontroller */
# if ARM_PROFILE == ARM_PROFILE_MICRO
# define CPU_ARM_MICRO
# elif ARM_PROFILE == ARM_PROFILE_CLASSIC
# define CPU_ARM_CLASSIC
# endif
#endif
#if ARCH == ARCH_MIPS