diff options
Diffstat (limited to 'backends/riscv_regs.c')
-rw-r--r-- | backends/riscv_regs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |