set ARMV7 for Cortex-A9 and Cortex-A15
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 16 Aug 2015 16:08:45 +0000 (18:08 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 16 Aug 2015 16:59:17 +0000 (18:59 +0200)
otherwise some macros like YIELDING are not defined correctly

common_arm.h
cpuid_arm.c

index 7e0c023..74b6378 100644 (file)
@@ -124,4 +124,8 @@ REALNAME:
 #define MAP_ANONYMOUS MAP_ANON
 #endif
 
+#if !defined(ARMV5) && !defined(ARMV6) && !defined(ARMV7) && !defined(ARMV8)
+#error "you must define ARMV5, ARMV6, ARMV7 or ARMV8"
+#endif
+
 #endif
index 51ba72d..6485003 100644 (file)
@@ -192,6 +192,7 @@ void get_cpuconfig(void)
        {
               case CPU_CORTEXA9:
                        printf("#define CORTEXA9\n");
+                       printf("#define ARMV7\n");
                        printf("#define HAVE_VFP\n");
                        printf("#define HAVE_VFPV3\n");
                        if ( get_feature("neon"))       printf("#define HAVE_NEON\n");
@@ -207,6 +208,7 @@ void get_cpuconfig(void)
 
               case CPU_CORTEXA15:
                        printf("#define CORTEXA15\n");
+                       printf("#define ARMV7\n");
                        printf("#define HAVE_VFP\n");
                        printf("#define HAVE_VFPV3\n");
                        if ( get_feature("neon"))       printf("#define HAVE_NEON\n");