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 bf31072..79370b6 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 7b577ca..d5961ad 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;