Skip to content

Commit 0925ef7

Browse files
authored
Merge pull request #2316 from sharkcz/s390x
zarch: treat z15 as z14 instead of generic
2 parents 371e6f7 + 883c397 commit 0925ef7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cpuid_zarch.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,20 @@
3030
#define CPU_GENERIC 0
3131
#define CPU_Z13 1
3232
#define CPU_Z14 2
33+
#define CPU_Z15 3
3334

3435
static char *cpuname[] = {
3536
"ZARCH_GENERIC",
3637
"Z13",
37-
"Z14"
38+
"Z14",
39+
"Z15"
3840
};
3941

4042
static char *cpuname_lower[] = {
4143
"zarch_generic",
4244
"z13",
43-
"z14"
45+
"z14",
46+
"z15"
4447
};
4548

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

7074
return CPU_GENERIC;
7175
}

0 commit comments

Comments
 (0)