Browse Source

Update dynamic_arm64.c

tags/v0.3.22^2
Martin Kroeker GitHub 2 years ago
parent
commit
18c99d3e63
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      driver/others/dynamic_arm64.c

+ 4
- 1
driver/others/dynamic_arm64.c View File

@@ -128,6 +128,9 @@ extern gotoblas_t gotoblas_NEOVERSEN1;
#ifndef NO_SVE #ifndef NO_SVE
extern gotoblas_t gotoblas_NEOVERSEV1; extern gotoblas_t gotoblas_NEOVERSEV1;
extern gotoblas_t gotoblas_NEOVERSEN2; extern gotoblas_t gotoblas_NEOVERSEN2;
#else
#define gotoblas_NEOVERSEV1 gotoblas_ARMV8;
#define gotoblas_NEOVERSEN2 gotoblas_ARMV8;
#endif #endif
extern gotoblas_t gotoblas_THUNDERX3T110; extern gotoblas_t gotoblas_THUNDERX3T110;
extern gotoblas_t gotoblas_CORTEXA55; extern gotoblas_t gotoblas_CORTEXA55;
@@ -239,7 +242,7 @@ static gotoblas_t *get_coretype(void) {
p = (char *) NULL ; p = (char *) NULL ;
infile = fopen("/sys/devices/system/cpu/cpu0/regs/identification/midr_el1","r"); infile = fopen("/sys/devices/system/cpu/cpu0/regs/identification/midr_el1","r");
if (!infile) return NULL; if (!infile) return NULL;
fgets(buffer, sizeof(buffer), infile);
(void)fgets(buffer, sizeof(buffer), infile);
midr_el1=strtoul(buffer,NULL,16); midr_el1=strtoul(buffer,NULL,16);
fclose(infile); fclose(infile);
#else #else


Loading…
Cancel
Save