]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
s390: Add support for z17 as CPU name
authorJens Remus <jremus@linux.ibm.com>
Wed, 9 Apr 2025 06:59:24 +0000 (08:59 +0200)
committerJens Remus <jremus@linux.ibm.com>
Thu, 10 Apr 2025 15:17:20 +0000 (17:17 +0200)
So far IBM z17 was identified as arch15.  Add the real name, as it has
been announced. [1]

[1]: IBM z17 announcement letter, AD25-0015,
     https://www.ibm.com/docs/en/announcements/z17-makes-more-possible

gas/
* config/tc-s390.c (s390_parse_cpu): Add z17 as alternate CPU
name for arch15.
* doc/c-s390.texi: Likewise.
* doc/as.texi: Likewise.

opcodes/
* s390-mkopc.c (main): Add z17 as alternate CPU name for arch15.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
(cherry picked from commit 981fe5fd80faf511aa265e841a380c9b46be30e6)

gas/config/tc-s390.c
gas/doc/as.texi
gas/doc/c-s390.texi
opcodes/s390-mkopc.c

index e7a7e7e04f1f32e5ef2d0eec335f75f1e60a7446..a89a3911b44a2ff2bab1fe84ccb87b8e8ad89e89 100644 (file)
@@ -343,7 +343,7 @@ s390_parse_cpu (const char *arg,
       S390_INSTR_FLAG_HTM | S390_INSTR_FLAG_VX },
     { STRING_COMMA_LEN ("z16"), STRING_COMMA_LEN ("arch14"),
       S390_INSTR_FLAG_HTM | S390_INSTR_FLAG_VX },
-    { STRING_COMMA_LEN (""), STRING_COMMA_LEN ("arch15"),
+    { STRING_COMMA_LEN ("z17"), STRING_COMMA_LEN ("arch15"),
       S390_INSTR_FLAG_HTM | S390_INSTR_FLAG_VX }
   };
   static struct
index afe1737f4cee41481d2b942a19af9143cf6160b7..a2a5531ee3f3ce8e26e9e054b8f7a2f608f7a912 100644 (file)
@@ -1944,7 +1944,8 @@ Specify which s390 processor variant is the target, @samp{g5} (or
 @samp{arch6}), @samp{z9-109}, @samp{z9-ec} (or @samp{arch7}), @samp{z10} (or
 @samp{arch8}), @samp{z196} (or @samp{arch9}), @samp{zEC12} (or @samp{arch10}),
 @samp{z13} (or @samp{arch11}), @samp{z14} (or @samp{arch12}), @samp{z15}
-(or @samp{arch13}), @samp{z16} (or @samp{arch14}), or @samp{arch15}.
+(or @samp{arch13}), @samp{z16} (or @samp{arch14}), or @samp{z17} (or
+@samp{arch15}).
 @item -mregnames
 @itemx -mno-regnames
 Allow or disallow symbolic names for registers.
index f1a5483c1cae36e34e583c1efb593d460784f4da..549922291890bf6480085742d3ee55ba3cefb891 100644 (file)
@@ -18,7 +18,8 @@ and eleven chip levels. The architecture modes are the Enterprise System
 Architecture (ESA) and the newer z/Architecture mode. The chip levels
 are g5 (or arch3), g6, z900 (or arch5), z990 (or arch6), z9-109, z9-ec
 (or arch7), z10 (or arch8), z196 (or arch9), zEC12 (or arch10), z13
-(or arch11), z14 (or arch12), z15 (or arch13), z16 (or arch14), or arch15.
+(or arch11), z14 (or arch12), z15 (or arch13), z16 (or arch14), or
+z17 (arch15).
 
 @menu
 * s390 Options::                Command-line Options.
@@ -73,7 +74,7 @@ are recognized:
 @code{z14} (or @code{arch12}),
 @code{z15} (or @code{arch13}),
 @code{z16} (or @code{arch14}), and
-@code{arch15}.
+@code{z17} (or @code{arch15}).
 
 Assembling an instruction that is not supported on the target
 processor results in an error message.
index 87d93bf167513992f1d1096c263141c422e41781..907f081862e365c94850f089d414e7db265f0720 100644 (file)
@@ -443,7 +443,8 @@ main (void)
       else if (strcmp (cpu_string, "z16") == 0
               || strcmp (cpu_string, "arch14") == 0)
        min_cpu = S390_OPCODE_ARCH14;
-      else if (strcmp (cpu_string, "arch15") == 0)
+      else if (strcmp (cpu_string, "z17") == 0
+              || strcmp (cpu_string, "arch15") == 0)
        min_cpu = S390_OPCODE_ARCH15;
       else {
        print_error ("Mnemonic \"%s\": Couldn't parse CPU string: %s\n",