Browse Source

Fix two mistakes on Arm64 builds

* Falkor is an ARMv8.0 with ARMv8.1 features, and chosing armv8.1-a for
   march generates instructions it cannot cope with. Reverting it back
   to armv8-a.
 * ThunderX2's build was left with a #define VULCAN, which made it miss
   the right compiler flags in Makefile.arm64, although it did create
   the right library in the end.
tags/v0.3.5
Renato Golin 6 years ago
parent
commit
31a490ea88
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      Makefile.arm64
  2. +1
    -1
      cpuid_arm64.c

+ 2
- 2
Makefile.arm64 View File

@@ -30,8 +30,8 @@ FCOMMON_OPT += -march=armv8-a -mtune=thunderx
endif endif


ifeq ($(CORE), FALKOR) ifeq ($(CORE), FALKOR)
CCOMMON_OPT += -march=armv8.1-a -mtune=falkor
FCOMMON_OPT += -march=armv8.1-a -mtune=falkor
CCOMMON_OPT += -march=armv8-a -mtune=falkor
FCOMMON_OPT += -march=armv8-a -mtune=falkor
endif endif


ifeq ($(CORE), THUNDERX2T99) ifeq ($(CORE), THUNDERX2T99)


+ 1
- 1
cpuid_arm64.c View File

@@ -270,7 +270,7 @@ void get_cpuconfig(void)
break; break;


case CPU_THUNDERX2T99: case CPU_THUNDERX2T99:
printf("#define VULCAN \n");
printf("#define THUNDERX2T99 \n");
printf("#define L1_CODE_SIZE 32768 \n"); printf("#define L1_CODE_SIZE 32768 \n");
printf("#define L1_CODE_LINESIZE 64 \n"); printf("#define L1_CODE_LINESIZE 64 \n");
printf("#define L1_CODE_ASSOCIATIVE 8 \n"); printf("#define L1_CODE_ASSOCIATIVE 8 \n");


Loading…
Cancel
Save