Browse Source

Merge pull request #2316 from sharkcz/s390x

zarch: treat z15 as z14 instead of generic
tags/v0.3.8^2
Martin Kroeker GitHub 6 years ago
parent
commit
0925ef70db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      cpuid_zarch.c

+ 6
- 2
cpuid_zarch.c View File

@@ -30,17 +30,20 @@
#define CPU_GENERIC 0
#define CPU_Z13 1
#define CPU_Z14 2
#define CPU_Z15 3

static char *cpuname[] = {
"ZARCH_GENERIC",
"Z13",
"Z14"
"Z14",
"Z15"
};

static char *cpuname_lower[] = {
"zarch_generic",
"z13",
"z14"
"z14",
"z15"
};

int detect(void)
@@ -66,6 +69,7 @@ int detect(void)
if (strstr(p, "2965")) return CPU_Z13;
if (strstr(p, "3906")) return CPU_Z14;
if (strstr(p, "3907")) return CPU_Z14;
if (strstr(p, "8561")) return CPU_Z14; // fallback z15 to z14

return CPU_GENERIC;
}


Loading…
Cancel
Save