Browse Source

set ARMV7 for Cortex-A9 and Cortex-A15

otherwise some macros like YIELDING are not defined correctly
tags/v0.2.15^2
Grazvydas Ignotas 10 years ago
parent
commit
f2ac1a5cee
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      common_arm.h
  2. +2
    -0
      cpuid_arm.c

+ 4
- 0
common_arm.h View 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

+ 2
- 0
cpuid_arm.c View 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");


Loading…
Cancel
Save