diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/ChangeLog | 4 | ||||
-rw-r--r-- | backends/riscv_regs.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog index bf31072e..79370b6f 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -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. diff --git a/backends/riscv_regs.c b/backends/riscv_regs.c index 7b577ca0..d5961ad5 100644 --- a/backends/riscv_regs.c +++ b/backends/riscv_regs.c @@ -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; |