Selaa lähdekoodia

CoreValidation: Fixed CoreFunc tests for GCC on ARMv8-MB.

Jonatan Antoni 8 vuotta sitten
vanhempi
sitoutus
4e09467a7b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      CMSIS/CoreValidation/Source/CV_CoreFunc.c

+ 1 - 1
CMSIS/CoreValidation/Source/CV_CoreFunc.c

@@ -134,7 +134,7 @@ void TC_CoreFunc_IPSR (void) {
 #if defined(__CC_ARM)
 #define SUBS(Rd, Rm, Rn) __ASM("SUBS " # Rd ", " # Rm ", " # Rn)
 #define ADDS(Rd, Rm, Rn) __ASM("ADDS " # Rd ", " # Rm ", " # Rn)
-#elif defined( __GNUC__ )  && defined(__ARM_ARCH_6M__)
+#elif defined( __GNUC__ )  && (defined(__ARM_ARCH_6M__) || defined(__ARM_ARCH_8M_BASE__))
 #define SUBS(Rd, Rm, Rn) __ASM("SUB %0, %1, %2" : "=r"(Rd) : "r"(Rm), "r"(Rn) : "cc")
 #define ADDS(Rd, Rm, Rn) __ASM("ADD %0, %1, %2" : "=r"(Rd) : "r"(Rm), "r"(Rn) : "cc")
 #elif defined(_lint)