]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix typo in riscv_register_info
authorAndreas Schwab <schwab@suse.de>
Thu, 19 Jul 2018 09:54:59 +0000 (11:54 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 19 Jul 2018 14:48:14 +0000 (16:48 +0200)
Signed-off-by: Andreas Schwab <schwab@suse.de>
backends/ChangeLog
backends/riscv_regs.c

index bf31072e3a8eeadb2c2fa0253faad8fb5a26e6cc..79370b6f85cff0a971f5af93c95f1d41da1e6f7b 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-19  Andreas Schwab  <schwab@suse.de>
+
+       * riscv_regs.c (riscv_register_info): Fix typo.
+
 2018-07-17  Andreas Schwab  <schwab@suse.de>
 
        * Makefile.am (riscv_SRCS): Add riscv_corenote.c.
index 7b577ca0cbea99d8c984d1eea7160641904bb421..d5961ad50bbbc82229be72805c2db8691c33c399 100644 (file)
@@ -106,7 +106,7 @@ riscv_register_info (Ebl *ebl, int regno, char *name, size_t namelen,
     case 26 ... 27:
       name[0] = 's';
       name[1] = '1';
-      name[1] = regno - 26 + '0';
+      name[2] = regno - 26 + '0';
       namelen = 3;
       break;