Browse Source

zarch: treat z15 as z14 instead of generic

Signed-off-by: Dan Horák <dan@danny.cz>
tags/v0.3.8^2
Dan Horák 5 years ago
parent
commit
883c39773a
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